Posted: Thu Jan 08, 2009 4:26 am Post subject: Gamecreate login bug in Iframe !?
I have build an adminpanel and i would integrate the GameCreate via IFrame.
It works very well, but i can't login a user... (external authentication is
activated)
on wrong login it throws: "Incorrect username or password"
on correct login it throws nothing and a clean login form is shown...
and after a successful login, there are no gamecreate cookie created.
It sounds like cookies are being blocked by your I-Frame.
There are restrictions with cookies and I-Frames across different top level domains, which is probably the reason you are not able to login.
For example, you cannot have an I-Frame on mywebsite.com that embeds yourdomain.eu.gamecreate.com in an I-Frame and expect the cookies to work, because of restrictions on cookies with I-Frames on different domains to the parent frame (mywebsite.com).
There is an easy fix for this however you can try.
You want to put your admin panel on say gamecreate.mywebsite.com (or whatever), which should allow your cookies to work across the I-Frame.
In order to create gamecreate.mywebsite.com, you need to add a CNAME record via your DNS panel for gamecreate.mywebsite.com to point to yourdomain.eu.gamecreate.com (or this domains IP Address if it wont accept a DNS entry).
Then access your 'Domain Configuration' option and enter 'gamecreate.mywebsite.com' as the 'Domain Alias'.
Once that is working, you should then update your I-Frame to use gamecreate.mywebsite.com instead of mydomain.eu.gamecreate.com, and your login attempts should now succeed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum