Hi,
I'm using sessions and am trying to do a logout link to allow users to quit my site properly. But I don't really know how?
Are "unregister variables" and "destroy the session" the only things to do?
Here is what I am doing:
//-----LogOut.php-----
<?php
session_start();
session_unregister("var1");
session_unregister("var2");
session_unregister("var3");
//and so on [...]
session_destroy();
?>
But when I look at my sessiondata folder (in php), the session file is well emptied(variable unregistered), but the file is still there (session not destroyed)...
Anybody knows a bit more about that???
Thanks a lot,
Fred.