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

c - zlib and gdi32 with OpenSSL? -

java - inputmismatch exception -

ios - Align baselines with characters in large line heights with Text Kit -