RE: [PHP] Sessions: auto appending session id to URLs
| From: | Johnson, Kirk | Date: | Wed, 20 Jun 2001 14:36:04 +0000 |
| Subject: | RE: [PHP] Sessions: auto appending session id to URLs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54533@lists.php.net to get a copy of this message | ||
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:miri@miriland.com]
> Sent: Tuesday, June 19, 2001 10:42 PM
> To: php-general@lists.php.net
> 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
___________________________________________________________
miri@miriland.com miri@stigma.com
http://miriland.com/ http://www.stigma.com