PHP example - How to destroy the current session and any variables associated with it?
PHP - How to destroy the current session and any variables associated with it?
In order to destroy the current session and any variables associated with it, you should use the special function called session_destroy()
<?php
...
session_destroy();
...
?>