Re: destroy session

From: Date: Tue, 17 Feb 2004 14:51:36 +0000
Subject: Re: destroy session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177951@lists.php.net to get a copy of this message
Natalia Sensini wrote:
I want to destroy a session when you click in a sing out link, something like this a href= link onClick="session_destroy()" Is ti possible? how?
Not like that. // some code if ( isset ( $_GET['session_destroy'] ) && $_GET['session_destroy'] == true ) { session_destroy(); } // some more code <!-- Some HTML --> <a href="<?php echo ( $_SERVER['PHP_SELF'] ); ?>?session_destroy=true">Logout</a> -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#177951) next »