Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Destroy a session
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:39 p.m.
FORMAT:
Text only
SIZE:
272 Bytes
Raw
Download
Tweet
HITS:
267
Go to comments
Report
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
// remove all session variables
session_unset();
// destroy the session
session_destroy();
echo "All session variables are now removed, and the session is destroyed."
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus