Sessão de exclusão de PHP
session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
Allen
session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
sessionStorage.removeItem('key');
<?php
session_start(); // start session
session_destroy(); // Delete whole session
// OR
unset($_SESSION['username']); // delete any specific session only
?>
<?php
unset($_SESSION['counter']);
?>
<?php
// Destroy the currently active session.
session_destroy();
?>
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Session.Abandon();
Session.Clear();