Re: Session understanding
| From: | Michael Gale | Date: | Thu, 02 Sep 2004 15:13:50 +0000 |
| Subject: | Re: Session understanding | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195581@lists.php.net to get a copy of this message | ||
Hello,
The site is for a ticket tracking system, if a CSR has a window open and is working on company A -
I would like to save
some information about company A in a session variable. Since the session is stored in the DB I
figured it was save.
Then if the CSR need to look up another company and opens another window I want to make sure that
the session variable I
just set containing company A is not over written.
... Is there a better way to do this ... I was hoping to not have to pass variables between each
page by including them
in the URL.
Michael.
On Thu, 2 Sep 2004 11:11:37 -0400
"John Holmes" <holmes072000@charter.net> wrote:
> 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...
>
>
>
>
>
--
Michael Gale
Network Administrator
Utilitran Corporation