web learning

HTML

CSS

PHP

JAVA SCRIPT

AJAX

EBOOKS

PROJECT

FORUM

 Syntax:
<?php
session_destroy();
?> 
Note: session_destroy() will reset your session and you will lose all your stored session data.

or:

<?php
session_start();
if(isset($_SESSION['username']))
  unset($_SESSION['username']);
?> 

Categories:

Leave a Reply