This has to do with how php works with session internaly. $_SESSION is
set after the fist call to
session_start(), session_destroy() destroys only data that are already
stored, the second call to
session_start() tries to retrieve these data, but there are none. Use
$_SESSION=array() before
sessi
I have a single page site I'm working on that displays the contents of your
current session. Users can clear the contents by clicking a link that
triggers a $PHP_SELF?clear=1 - Before any headers are sent out, the script
checks for $_GET['clear'], and if it's set, it does a session_destroy();.
For
2 matches
Mail list logo