RE: [PHP] session_destroy problem

From: Date: Fri, 10 Jan 2003 17:18:00 +0000
Subject: RE: [PHP] session_destroy problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131146@lists.php.net to get a copy of this message
Question...Do you know if Mozilla runs a browser instance that might handle the process after one of the browser windows is closed? Right now the situation is that IE closes the session when the window that opened it closes. I have a site that is authenticated and then runs sessions on the authenticated user. If you close the browser window and open another one, you are prompted for the login and password and have your new identity/session. On Mozilla if I close the window actively on the site and have other windows up on other sites I can open another Mozilla instance and return to the site and it still has my session open and identity. I have to close every Mozilla instance for the session to close. If Mozilla is run by one central process I would think maybe it could do this onwindowclose behaviour? Maybe a good question for the Javascript list but since it sounds like you guys have seen this tried before maybe you already know. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -----Original Message----- From: Scott Fletcher [mailto:scott@abcoa.com] Sent: Friday, January 10, 2003 12:02 PM To: php-general@lists.php.net Subject: Re: [PHP] session_destroy problem Yes, the JavaScript code can run before the browser is closed but it would not be finish running because the browser closing had been executed. Someone had tried it before and struggled with it. But that is a good advice, thanks for jumping in. "Tamas Arpad" <sts@mail.xubion.hu> wrote in message news:200301101751.53603.sts@mail.xubion.hu... On Friday 10 January 2003 17:39, Scott Fletcher wrote: > > Javascript has a function for performing actions on window close.... > That would work only if the webserver IP address is '127.0.0.1' (local > machine), but not any other IP address. Because of the ACK synchrious > communication that get interrupted as result of the browser closing. I think the javascrit code runs before the browser is closed, other way what would run it? Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#131146) next »