[Solved] Problem with session.use_trans_sid

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
The Monkey
Forum Contributor
Posts: 168
Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA

[Solved] Problem with session.use_trans_sid

Post 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
Last edited by The Monkey on Wed Feb 16, 2005 5:39 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

may want to look at setting the value by .htaccess.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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', '&');
The Monkey
Forum Contributor
Posts: 168
Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA

Post 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
Post Reply