Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2006, 04:10 PM
Authorized User
 
Join Date: Apr 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to chayanvinayak
Default how to destroy session when window is closed

My page create session using userid when user login ,how can i destroy session when user closes explorer/ windows using which he has logged.



chayan vinayak goswami
__________________
chayan vinayak goswami
 
Old June 1st, 2006, 06:18 AM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe Session do Destroy themselfs when you close the Browser window if you get some sort of error you should use session_unset(); on the top of the php code to destroy any other session still around.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing all child window when browser is closed h@ckerz ASP.NET 2.0 Professional 1 July 17th, 2008 01:04 AM
closed parent window when opened child window jaiwin Javascript How-To 0 October 8th, 2006 12:54 PM
how to clear session variabl when browse is closed chayanvinayak Beginning PHP 3 May 22nd, 2006 04:59 AM
Determining how a window is closed chrscote Javascript How-To 2 June 16th, 2005 07:53 AM
return previous file after a window is closed hosefo81 PHP How-To 2 January 1st, 2004 02:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.