Re: Log out button

From: Date: Wed, 16 Mar 2005 11:55:50 +0000
Subject: Re: Log out button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210883@lists.php.net to get a copy of this message
William Stokes wrote:
Hello, Again this might be more of a HTML quetion. If so sorry about that. Anyway I was just trying to make a log out button to a page. It should end a session or/and close browser window. (Closing browser ends the session as well I think? no
)
All variable values are deleted when browser is closed. Right? no
Can anyone help? Thanks -Will
Make a button. In the submitted form, get the session-id, destroy the data, and remove the cookie. The output some JS to close the window. see http://www.php.net/session_destroy for more info

« previous php.general (#210883) next »