rather have a link like ->   somepage.php?signout=true

on that page...

if($_GET['signout'] == true){
   session_destroy();
  header("location: someotherpage.php");
}else{
   // do something else
}

"Natalia Sensini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
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?

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

Reply via email to