$oldSession = session_id();}
session_regenerate_id();
$newSession = session_id();
session_id($oldSession);
session_destroy();
$oldSession = $_SESSION;
session_id($newSession);
session_start();
$_SESSION = $oldSession;
session_regenerate_id() function could help us to solve this problem because we could keep our session to display even though we log out (clear session). Does anybody has good solution more than that? Please share any idea on it.
No comments:
Post a Comment