php - $_SESSION['x'] exist after session_unset(); and session_destroy(); How to remove? -
how make sure $_session
removed. have page with
<?php session_unset(); session_destroy(); header("location: threads.php"); ?>
you must load/start session before can destroy it:
<?php session_start(); session_destroy();
Comments
Post a Comment