prueba de cerrar la sesión de esta manera:
Código PHP:
Ver original<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
// Unset all of the session variables.
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) { $params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
?>