Vagharshak Tozalakyan - 2013-02-11 15:24:53 -
In reply to message 1 from pecili
Hello, If you are destroying a cookie-enabled session, make sure your page is reloaded, because a new cookie is being sent when regenerating session_id.
session_start();
session_regenerate_id();
header('Location: script.php?destroy=1');
And on reload:
if (isset($_GET['destroy'])) {
session_start();
session_destroy();
}
Hole that helps.