Hi all,
I have an issue with session cookies not always being set. I have a chat room script which uses sessions, but quite often people complain of it logging them right back out as soon as they try to do anything.. this is caused by a missing session id, normally found in the cookie..
90% of people including myself never have any problems with it, but a small minority of people do. At first I thought it was the privacy settings in IE6, but some people are still experiencing the problem with it set to allow all cookies.
The strange thing is that I never have this problem with regular cookies.. the old version of my software used plain old cookies and nobody ever had a problem.. but since I switched over to sessions, the problem has occured..
I've tried setting session lifetime to as high as 24 hours incase there was some issue with time zones, but this makes no difference !
Will sessions still function correctly if I retrieve the session id of the new session right after session_start() and manually set the cookie ? (as opposed to just letting it set the cookie automatically)
Any other suggestions are welcome..
Chris