PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm having a problem with session ID's being appended to every URL on a page everytime a new session is started. I can't find any php.ini variables that would cause this or any bugs in my code that will cause this. This only happens on creation of a new session. Every other page that uses the session does not do this, only the first call to the session.
Well in your php.ini you can find the option session.use_trans_sid
if you set this to 0, PHP will not attach the SID to the URL.
The reason its only doing it for the first page is because it does not know yet if you are accepting cookies, if you are, then it will store the SID in a cookie and not use the URL. Thats why you are only seeing it attached to urls on thh first page.
Which version of PHP are you currently running? BTW, the install files for the latest versions are available on php.net: http://www.php.net/downloads.php