Getting rid of the PHPSESSID in the URL??

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!

Moderator: General Moderators

Post Reply
tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Getting rid of the PHPSESSID in the URL??

Post by tsg »

Hello,

Anyway I can get rid of the PHPSESSID in the URL? It only occurs on the second or first page, then is gone.

Doing some research, I tried adding ini_set("session.use_trans_sid", 0);
at the top of the page before session_start (); , but still get it in the URL.

Thanks in advance ..

Tim
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

strange but maybe session.use_only_cookies will help you

ini_set("session.use_trans_sid", 0) is before session_start(), you did not miss one?
Without access to the global php.ini this might be set in .htaccess for the whole directory (see also: http://www.php.net/manual/en/configuration.changes.php#configuration.changes.apache)
Post Reply