Hello Maarten
Destroy session?
It depends on your PHP version! You would read new $SESSION, $GET... and so on....
Here are some examples form PHP manual...
Example 1. Destroying a session
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
session_start();
// Unset all of the session variables.
session_unset();
// Finally, destroy the session.
session_destroy();
?>
That means if you have session variable memberID, you need to use this way...
session_register("memberID");
session_destroy("memberID");
Example 2. Destroying a session with $_SESSION
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
session_start();
// Unset all of the session variables.
unset($_SESSION);
// Finally, destroy the session.
session_destroy();
?>