Page 1 of 1

Bizarre Login Problem

Posted: Tue May 02, 2006 9:12 am
by Tehquickness
Ok i created a log in script and it works fine.... sort of. For every other computer I have tried it on (about 50) it works just fine no problems at all, but when I use it on my own computer I have to log in twice. I log in the first time and then when i go to a page requireing login it will say i need to log in again. Once I log in again it works great. Any one know what could be causeing something like this? I have asked my users and they say it works great with no problems.

Posted: Tue May 02, 2006 9:33 am
by feyd
Sounds like your session or cookie or both is being lost due to crossing domain lines.

Posted: Tue May 02, 2006 9:48 am
by neophyte
When you set your cookie with setcookie() make sure your domain name parameter is .domain.com. (The leading dot is important). Make sure your session domain name is set. I think you can do that with ini_set('session_domain', 'domain.com');

Hope that helps.