I work for a webhosting company, and we recently had a client email and ask us why their PHP that uses sessions will sometimes appear as:
http://domain.com/phpfile.php?PHPSESSID=e2991539e87245e6d1c939397c723d47 ?
They say it should appear more as:
http://domain.com/phpfile.php
I don't have any experience using sessions in PHP. I figure there is something that I need to change in the php.ini file, if so, what do I need to change?
Thanks
i would say that there is a script that passes the PHPSESSID (session ID) through the URL by attaching to the URL like:
<a href="www.mysite.com/phpfile.php?$PHPSESSID>Click here</a>
but with out any code, it is hard to say...
hth bastien
I have seen that before, i think it is something to do with a page that is expecting a session to be set.
What it means is that the version of PHP you are using was compiled with "--enable-trans-sid".. Why they dont see it every time, is because the first hit in a session, it will add the PHPSESSID string to the end. If the cookie sets (Cuz cookies are avail till next load) then it doesn't need to append the session because it is in a cookie. If you have cookies disabled on the browser, it will continue on every link. Hope that makes sense, I think I rambled.