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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to