Re: Session understanding

From: Date: Thu, 02 Sep 2004 15:11:37 +0000
Subject: Re: Session understanding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195579@lists.php.net to get a copy of this message
From: "Michael Gale" <michael.gale@utilitran.com>
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 ?
Session are identified by a cookie (by default). No matter what window or how many windows the user has, the same session ID is going to be sent in a cookie when a request is made to your site. So there's no way to tell the requests from different windows apart. Why do you really need to know if a new window is opened or not? ---John Holmes...

« previous php.general (#195579) next »