Re: Sessions, no cookies and enable-trans-sid, oh my
| From: | Chris Lee | Date: | Thu, 11 Jan 2001 19:47:48 +0000 |
| Subject: | Re: Sessions, no cookies and enable-trans-sid, oh my | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34080@lists.php.net to get a copy of this message | ||
"allow per session cookies(not stored)" will enable cookies, IE just does
some garbage collection when its closed thats all. so php realizes that IE
is accepting cookies in this case and uses cookies vs trans-sid. disable all
cookies in IE, and restart. goto the page your testing, you should see that
in the HTML php has appended
?PHPSESSID=[PHPSESSID]
to all urls and
<input type=hidden name=PHPSESSID value=[PHPSESSID]>
to all forms.
php strangley enough ONLY does this if your urls are not absolute, ie.
echo "<a href='index.php'>index<a/>\n";
will have the PHPSESSID added, and
echo "<a href='http://somesite.com/index.php'>index<a/>\n";
will NOT have the PHPSESSID added.
make sure of course too that session_start() is called from in your code
too. else your not using sessions :)
Chris Lee
Mediawaveonline.com
""Boget, Chris"" <Chris.Boget@wild.net> wrote in message
news:4040BBE81A9AD411BD27009027887A7C042931@tiger.wild.net...
> I know that if you compile PHP4 with --enable-trans-sid
> (as we have), it will automagically append SID to all href
> links. This is supposed to make it so that if a client's browser
> does not accept cookies, the session ID gets sent to any
> subsequent pages that the user gets to by clicking on links.
>
> My problem is this and I'm hoping someone can help me
> find a solution. In IE, I went to customize my security
> level. I disabled "Allow cookies that are stored on your
> computer" and I also disabled "Allow per session cookies
> (not stored)". If I do this, the enable trans sid doesn't work
> (as in, the value of SID is not automagically appended). If
> I enable the latter (with the former still disabled), the enable
> trans sid works beautifully.
> Now, my question is this the expected functionality? Or
> should the enable trans sid work regardless?
>
> Thanks!
>
> Chris
>