Re: Session understanding
| From: | Torsten Roehr | Date: | Thu, 02 Sep 2004 15:55:20 +0000 |
| Subject: | Re: Session understanding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195594@lists.php.net to get a copy of this message | ||
"Michael Gale" <michael.gale@utilitran.com> wrote in message
news:20040902080950.382aac1c@mgalepc.utilitran.com...
> Hello,
>
> Morning .. at least it is where I am :)
>
> I have a small issue with sessions, at the moment I am using sessions on
our web site and storing the session
> information in a db_table. It is working great. Right now I am only
storing the users ID, name and role in the session
> data, but I would like to store other information as well. The problem is
... that if that person opens another browser
> window and connects to the site another session is not created.
>
> So if I try and store a variable that would be unique to each window it
would get over written. Is this a configuration
> problem ?
>
>
> Thanks.
An alternative might be omitting cookies and passing the session id around
via GET/POST. This would solve your problem but might require some work to
adapt your application. Another advantage of this would be that you would
not have to rely on your user's cookie setting being enabled.
Regards, Torsten Roehr