Page 1 of 1

session cookie in request data

Posted: Tue May 31, 2005 8:01 am
by spikedgav
Hi,

I've got a problem with my site sending the session cookie as request data the first time the site is loaded. Subsequent pages visited store the session cookie as a cookie.

Its unfortunate that I can;t give access to the code, as Its tie property of my company.

Under what cercumstances do what appears in code to be just a url, such as new_dev.php, gain the request data ?PHPSESSID=35a3fa289241800acf3a0748575048a1
??

This is causing problems elsewhere in my site, because sessions are disappearing.

Has anybody had a similar problem and found a solution?

Thanks

Posted: Tue May 31, 2005 1:44 pm
by anjanesh
You need to have the session store in the cookie which is the default or you can have it sent in the url each time a new page is ngin requested for. Normally its in the form of sid something.php?sid=35a3fa289241800acf3a0748575048a1&paramters=somethingelse

Posted: Tue May 31, 2005 2:11 pm
by John Cartwright
I believe the SID is send along in the URL when the session is created, and will disapeer in your next page request. This can be turned off by changing session.use_trans_sid = 0 in your php.ini.