session_destroy() not working for me. I am trying to use it to create a logout button. This is what I've tried:
<?php
session_start();
session_destroy();
echo "you have been successfully logged out.";
?>
The above displays:
you have been successfully logged out.
But when I test the session, which is supposed to display a form if(!issset($PHPSESSID), the session is still active and no form is displayed.
Am I doing something wrong?
Richie.