Search This Blog

unset or delete or destroy session in php

<?php
session_start();
unset($_SESSION['views']);
?>

output :


note :
1) it deletes "views" session
2) if you already stored   value "views" then it deletes "views" otherwise it raises an error

Share Links

Related Posts Plugin for WordPress, Blogger...