There is a setting in the php.ini file named "session.use_trans_sid",  which
enables appending the session ID if PHP was compiled with enable-trans-sid.
You could try setting this to 0 if you are allowed to set up an .htaccess
file on the server. Create the .htaccess file with the following line in it:

php_flag session.use_trans_sid 0

I haven't tried this for disabling enable-trans-sid, but have used it to
enable/disable other php.ini settings. Good luck!

Kirk

> -----Original Message-----
> From: Miri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 10:42 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sessions: auto appending session id to URLs
> 
> 
> I have developed shopping carts and session related Web sites for my
> employer where we have control over the php environment. On 
> our servers, we
> do not enable the 'trans-sid' option. I'm now trying to set 
> up a session
> related site for a friend of mine on a Web host of her 
> choosing. On this
> host, php was compiled with "enable-trans-sid." It means that 
> on the first
> page of the site one visits, you get a horrid looking variable name
> screaming at you in all caps appended to every URL. I'm used 
> to giving my
> session a much more friendly looking name and then manually 
> appending that
> to each url. Right now that means that urls on the first page 
> have this
> very lovely format:
> http://mydomain.com/new.php?sid=496312b318b435c21e1e13016f7e82
62&PHPSESSID=4
96312b318b435c21e1e13016f7e8262
The session info is there twice. Once you reload the page or go to another
page, the auto appended stuff (&PHPSESSID=496312b318b435c21e1e13016f7e8262)
goes away. 

Is there a way to stop this from happening when trans-sid has been enabled
via the compile?

Thanks for any help,
beth
___________________________________________________________
[EMAIL PROTECTED]                           [EMAIL PROTECTED]
http://miriland.com/                  http://www.stigma.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to