Page 1 of 1

How to delete the PHPSESSID?

Posted: Tue Jul 04, 2006 8:08 pm
by jetbrains
I have a php page which has a link to "yo-momma-joke.php",but when I open the link ,I found "PHPSESSID" had append the link.see bleow

http://www.jokelogic.com/yo-momma-joke. ... 1de20f9e1e

But I want it to be

http://www.jokelogic.com/yo-momma-joke.php.


How to delete the "PHPSESSID"?
Thank you in advance

Posted: Tue Jul 04, 2006 8:14 pm
by RobertGonzalez
The first time you load a page using a PHP session all of your internal links are going to be appended with the PHPSESSID variable. This is a mechanism put in place by PHP to be able to track sessions when using cookie is not available.

I wouldn't worry about deleting it. It does nothing except help your script manage sessions.

Posted: Tue Jul 04, 2006 8:16 pm
by bdlang
Do you have 'session.use_trans_sid' turned on in your php.ini? This will cause the URL to have the PHPSESSID as you've seen. Take a look at all the Session settings in your php.ini file, or in a script with phpinfo().

Posted: Tue Jul 04, 2006 8:39 pm
by jetbrains
Thank Everah and bdlang very much.

Both of your messages are very helpful to me.

Great forum.
Thank you again.