Session Management

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
  Is it possible to have session management differentiate within
browsers on one  pc? For example, if you have two browsers on the same
shopping site, and one browser adds to the cart, the other browser
should still show an empty cart. I don't know if this is possible,
since I have done testing on, and have seen that when I add
an item to the cart on one browser, then open a 2nd browser window, go
to, the cart will contain the item I added from the 1st
browser window. Any ideas?

(patel at cs dot utk dot edu)

Re: Session Management

Quoted text here. Click to load it

If you have DIFFERENT BROWSERS on one PC, say, IE and Mozilla,
they won't share cookies.  In particular, they won't share the
session cookie.  So they'll establish different sessions and
have different session data.

Quoted text here. Click to load it

I'll disagree about "should" here:  that behavior you want might
break a lot of web sites that use frames and sessions, for instance
"webmail" sites, that depend on shared information between frames.

I believe that will happen with DIFFERENT BROWSERS.  It won't happen
with two windows from the same running instance of the same browser.
I'm not sure what happens if you try two different running instances
of the same browser (start it up twice - it may not let you do that
using the same user profile for both instances (Firefox won't).  It
should, but I haven't tested it, work with two different running
instances of the same browser using different user profiles).

Quoted text here. Click to load it

                        Gordon L. Burditt

Re: Session Management

Jay wrote:

Quoted text here. Click to load it

The short answer is no.

There is (AFAIK) no way way to differentiate between browser windows other
than on the basis of the code they hold. This is ingrained into the
structure of HTTP, HTML and browser technology, although having tried to
solve this problem myself I think it would be a very useful extension.

You could use the use_trans_sid option to get the browser to reference
different sessions but this (IME) doesn't work very reliably.

It is possible to subdivide the session but you still have the problem of
maintaining a reference to the sub-part in the browser window. My form
editor PfP Studio ( ) uses this method.



Re: Session Management

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline