RE: [PHP] Half solved...............what the @#%# is PHPSESSID?
| From: | Ford, Mike [LSS] | Date: | Mon, 28 Jul 2003 09:38:41 +0000 |
| Subject: | RE: [PHP] Half solved...............what the @#%# is PHPSESSID? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157146@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ryan A [mailto:ryan@jumac.com]
> Sent: 26 July 2003 21:16
>
> Hey John,
> I dont think its the browser because I have tried this with
> opera 6,opera 7,
> IE and NN with the same results...
> But when i checked the phpinfo() it says that cookies are
> enabled....Do you
> think its worth it to search and replace each Location header
> with .SID?
Absolutely: just consider a user who has deliberately blocked all cookies in their browser options
-- even if your server is set to use cookies by default, if session.use_trans_sid has not been
disabled, PHP will detect that the user is blocking cookies and revert to passing the SID (aka
PHPSESSID) in the URL. If you have a URL that PHP is unable to rewrite for any reason (such as
because it's in a header('Redirect: ...') string), if you haven't manually
concatenated the SID constant to that URL, the session will "disappear" at that point.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211