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

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -