Forum Moderators: coopster

Message Too Old, No Replies

Strange session behavior, are session cookies server dependant

session working fine from one server and not from the other

         

zeeshan_kh

11:43 am on Aug 16, 2006 (gmt 0)

10+ Year Member



Hi,

I'm having a strange problem with session variables. I am trying to access one of my site from two different systems. Sessions work fine on my system and I'm able to login but I cannot login from the other system because sessions are not working on it. On printing session ID i found out that my system keeps 1 session ID but the other systems doesn't, everytime I refresh it fetches a new session id. I have tried all browser settings but all goes in vain.

Now heres the strange bit. We do have another server and we've got some sites running on it using the same session code for login. Sessions work fine for that server on both systems.

Its really confusing me now becuase sessions work on my system from both servers but they only work for server 2 on the other system. Its blocking all session cookies from server 1 on that system.

I have also compared php.ini files for both servers but couldn't find any major difference. Only thing is server 1 is running php 4.3.10 and server 2 uses php 4.4.1.

Please ask for more details if required. Any help would be highly appriciated.

Thanks

Zeeshan

FalseDawn

5:12 pm on Aug 16, 2006 (gmt 0)

10+ Year Member



Try with different browsers. Firefox lets you easily see the session cookie.

Make sure that you clear temporary files and any cookies related to the site and try again. It's probably a cookie conflict or something.