Page 1 of 1

[Solved] Problem with session.use_trans_sid

Posted: Wed Feb 16, 2005 9:27 am
by The Monkey
I have ini_set('session.use_trans_sid', false); prepended to all of my pages, but my script still randomly (usually the first time you visit the site of a browser session) appends the ?PHPSESSID to the end a FEW links, but not all of them. Sometimes they are the links that appear in the beginning of the script, or towards the middle, sometimes it is one link, sometimes links in an entire group.

Is there some common mistake I might be making, or is this pretty much unheard of? I wouldn't know where to begin if I were to post my code, but I'll try if you guys would like.

- Monkey

Posted: Wed Feb 16, 2005 9:35 am
by feyd
may want to look at setting the value by .htaccess.

Posted: Wed Feb 16, 2005 9:35 am
by Maugrim_The_Reaper
A few settings that may help:

Code: Select all

ini_set('session.use_trans_sid','0');
ini_set('session.use_only_cookies', '1');
ini_set('arg_separator.output', '&');

Posted: Wed Feb 16, 2005 5:39 pm
by The Monkey
Setting the value in the htaccess file worked nicely. Thank you for the help.

For those who find this thread later and do not wish to find out the command to turn off use_trans_sid in an htaccess file, the code follows.

їcode]php_flag session.use_trans_sid offї/code]

- Monkey