can't destroy sessions

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I've this code I've included in ALL my pages:

session_cache_limiter('private, must-revalidate');
 $UserID = 0;
 if (isset($_SESSION["ID"]) and $_SESSION["ID"] > 0){
  $UserID = $_SESSION["ID"];

but not in the "logout.php" wich is this code:
 $_SESSION["ID"] = 0;
 header("Location: index.php");

I can logout without any problem, but when I log again, any user/pass works,
so I suspect the session to be recreated as the session ID is always the
same. Where is the problem ???? why the session is recreated ?


Site Timeline