Hello everyone--
I was wondering if anyone was having the same problem as I am or knows a solution to it. Here's what I am doing. I start a new session when a user logs into my site with the session_start() function. However, when they proceed to the next page (I have cookies turned off) and I call the session_stat() function again I lose the previous page's session id and hence all the variables that I set in that session id. In other words when I go to the second page it creates a new session id for me.
Here's what I'm doing exactly. I start the session and get the SID. Then I have a form where a user puts in their username and password. Now in the action of the form I have this:
action="secondpage.php?SID=<? echo $SID; ?>"
In order to pass the session id to the next page via the url so I don't lose the session information. But this doesn't work and PHP still generates a new session id on the secondpage.php.
I've been reading a lot among the php mailing list and on here and what I am finding is that a lot of people who have upgraded to PHP4.0.3pl1 are having this problem with the session_start() function generating a new session id. I have track_vars enabled (it's enabled all the time since version 4.0.3) and I have global vars enabled. The only thing I don't have enabled are cookies because I can't use them on the site I'm working on.
At any rate is anyone having the same issue? If so have you found a work around? If not what are you doing? Also, even if you aren't having this problem and may have an idea of what is going on I would LOVE to hear from you!
Thanks,
Jay