session & browsers (final)

From: <- Chameleon -> (cham_gss_at_hotmail.NOSPAM.com)
Date: 10/29/03


Date: Wed, 29 Oct 2003 18:28:16 +0200

I ask something relative later but the answer make me cry ;-)
If we duplicate the browser window (both in IE / Mozilla), both of 2 browser windows use the same session!!!
This produces many problems...

My program is this:
I have html format books inside zip files.
If I choose a book from my main page, php sets
$_SESSION['book'] = "a_book.zip";
and loads the index.html from a_book.zip.
if we click a link inside index.html like:
<a href=chapter1.html>Next</a>
Apache returns error 404, php handles this error and returns file chapter1.html from a_book.zip

All right but the problem is this:
If I duplicate browser window and in the 2nd browser I select another book, then because both of 2 browser use the same session, 2nd
browser change the $_SESSION['book'] and 1st browser searches in wrong zip file.

Any suggestions?

Regards
Gessos Paul



Relevant Pages

  • Re: 800x600
    ... >> larger browser window and a lot of the space is then blank. ... > display your page. ... Size), images cannot. ...
    (uk.net.web.authoring)
  • Re: Secure WebDAV - ending connection
    ... The HTTP connection is dropped from the client end when all browser windows ... > browser window with the secure web site address brings up the logon dialog ...
    (microsoft.public.inetserver.iis.security)
  • Re: Graphic causing windows stretch.
    ... Make the image small enough to fit the smallest browser window expected, ... Make the image a cell background in a fixed width table, ...
    (microsoft.public.frontpage.programming)
  • Re: Hyperlinks and various browsers
    ... and when the cursor moves away from the hyperlink it changes back to ... The following browsers do not handle hyperlinks normally, i.e. the cursor ... If the browser window is active, the cursor changes when I mouseover a hyperlink. ...
    (comp.sys.mac.hardware.misc)
  • Re: Browser Contents to Picture
    ... it is possible to get around that problem by using exactly the same method on the Browser control itself instead of on the Form. ... Firstly, this method does not require the WebBrowser to be actually visible on the display and secondly you can copy the entire Browser window, including the parts that you would normally need to scroll to see when the window is taller than the display. ... Private Declare Function SendMessage Lib "user32" Alias _ ... Dim myWindow As Long, childWindow As Long ...
    (microsoft.public.vb.general.discussion)