[PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
Hi there, First off this may be more of a javascript question than PHP question but I was wondering if anyone else has attempted something similar (and it does involve the deletion of PHP sessions). Here's the scenario: I have a 'stand alone' website on our intranet which creates a PHP session

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:30 * Neil Freeman said Does anyone have any suggestions as to how I could achieve the following: a) Browser window closed by user clicking on [X] No but I'm sure someone will. b) 'Logging out' page opened (which

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
OK I agree with you there :) But as I haven't called the session_destroy() function the session file still resides in the session.save_path directory. Over time the number of these files will obviously increase so isn't it better to implement a method which calls the session_destroy() function

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:46 * Neil Freeman said OK I agree with you there :) But as I haven't called the session_destroy() function the session file still resides in the session.save_path directory. Over time the number of these files will

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
OK I'll have a look around. Thanks for your time Nick. Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:46 * Neil Freeman said OK I agree with you there :) But as I haven't called the session_destroy() function the session file still resides in

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Bruno Baketaric
Uhhh? Closing a browser window, does definetly NOT delete the session. Closing a Browser Window simply does nothing on the Server-Side, so there's no command to delete a session executed. If someone manages to grab the sessionid (or the cookie) and opens the Page again, the session is still

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Richard Baskett
PROTECTED] Date: Tue, 22 Jan 2002 11:08:23 + To: PHP-General [EMAIL PROTECTED] Subject: Re: [PHP] Session deletion on window close? OK I'll have a look around. Thanks for your time Nick. Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:46 * Neil