RE: [PHP] url rewriting within sessions - confused newbie needs h elp
| From: | Ford, Mike [LSS] | Date: | Fri, 12 Dec 2003 10:03:22 +0000 |
| Subject: | RE: [PHP] url rewriting within sessions - confused newbie needs h elp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172562@lists.php.net to get a copy of this message | ||
On 11 December 2003 19:58, Peter Walter wrote:
> I hope you mean session_start().
>
> Yes, I did. Getting a bit dyslexic nowadays.
>
>
> Well, you would, because PHP would use the value from the PHPSESSID=
> URL parameter.
>
> ... except that on the second call, the url (as displayed by
> the browser) does not contain the PHPSESSID parameter, yet I
> am still able to retrieve the session variables correctly ...
Well, that seems right (and is different from your previous explanation). Go back and read my
original description of the process -- especially steps 5 and 6. Once PHP knows that your browser
is accepting cookies, it stops appending the PHPSESSID= URL parameters, and the cookie takes over
the job.
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@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211