Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals
| From: | trlists at clayst dot com | Date: | Wed, 17 Mar 2004 03:57:23 +0000 |
| Subject: | Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180645@lists.php.net to get a copy of this message | ||
On 17 Mar 2004 Tom Rogers wrote:
> The default lifetime for session cookies is until the browser is
> closed.
Of course. <slapping head>
> You can run multiple sessions as long as they are to different
> domains I think. I am pretty sure PHP can only handle 1 session per
> client but you could always roll your own on top of that with
> cookies/and or ID's
Hmmm, I would contend that PHP, particularly running inside stateless
HTTP, doesn't know one client from another except by the code you write
that makes it recognize them, or that uses defaults to do so. If you
only look at the default $_COOKIE["PHPSESSID"] to figure out what
session you are handling then you get one per client, but if you had a
way to set multiple cookies (easy) and to know which one you cared
about on the next page load (harder, but at least it seems doable in
the URL) then you can run multiple sessions. Maybe that's what you
meant by "roll your own" ...
--
Tom