session.use_trans_sid question

From: Date: Tue, 13 Aug 2002 16:41:42 +0000
Subject: session.use_trans_sid question
Groups: php.general 
Request: Send a blank email to php-general+get-112365@lists.php.net to get a copy of this message
After reading other posts, I have found that there are two ways to disable use_trans_sid at runtime. I do NOT have the ability to change the php.ini file, so I am stuck with handling this at runtime. 1. in code: ini_set("session.use_trans_sid","0"); 2. in an .htaccess file: <IfModule mod_php4.c> php_value session.use_trans_sid 0 </IfModule> I have found that using the htaccess method work very well, however it affects an entire directory. If I want to only disable use_trans_sid on certain pages, I need to use the code method. However, I have yet to be able to get it to work. Here's a sample of the code I'm using: <?php $something = ini_set("session.use_trans_sid","0"); include... ?> and so on. That code snippet is the first thing in my file, before any other HTML or PHP code, yet I still get PHPSESSIONID in my URLs when cookies are turn off. Any ideas? php4.2.1 apache1.3.22 linux Thanks, Sean

« previous php.general (#112365) next »