removing session vars within same page request
This commit is contained in:
@@ -20,6 +20,8 @@ mkheader("sessions!", "#aea");
|
||||
<?php
|
||||
if ($_POST['destroy-session'] == "yes") {
|
||||
session_destroy();
|
||||
$_SESSION = array();
|
||||
|
||||
?>
|
||||
<p>Successfully destroyed session</p>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">clear this</a>
|
||||
|
Reference in New Issue
Block a user