Re: PHPSESSID
| From: | Brian Huff | Date: | Mon, 17 Jun 2002 21:50:40 +0000 |
| Subject: | Re: PHPSESSID | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14254@lists.php.net to get a copy of this message | ||
There is, but I dont think you want to do it...
if you recompile PHP with "--enable-trans-sid" turned off, then PHP will not slap on that id at the end of the URL. However, if you do this, you will completely lose the ability to track sessions when people dont have cookies turned on.
You could manually rewrite EVERY page you use to pass hidden form fields between pages, but that kind of code requires a hell of a lot of maintenance.
personally, I'd just take a page from the book of REST and leave that ugly session id on your URL. Both the Apple Store and Amazon do it... and those are just the A's ;)
--
Brian 'Bex' Huff
bex@stellent.com
Phone: 952-903-2023
Fax: 952-829-5424
> PHP v.4.2.1
> Apache v1.3.x
> NT 4 workstation SP6
>
> I am using IE6 with the default (medium) cookie privacy settings.
>
> What I'm finding is that the session ID is being passed with the URL i.e.
> ?PHPSESSID=blahblah. I understand that PHP does this when it can't save
> session cookies on the client for some reason and this is borne out by the
> fact that when I set cookie privacy to 'Allow all cookies' the get string
> disappears.
>
> As most IE6 users will probably maintain default cookie settings - is there
> something else I can do to stop PHP putting the session ID in the URL?
> TIA
> Rich
>