Answers for "how to start and destroy the session?"

PHP
5

php delete session

session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
Posted by: Guest on January-24-2020
0

Remove Session

Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Session.Abandon();
Session.Clear();
Posted by: Guest on April-21-2022

Code answers related to "how to start and destroy the session?"

Browse Popular Code Answers by Language