How can I destroy a session? GIve me an example code.
http://www.php.net/manual/function.session-destroy.php
You need to start the session before you destroy it.
<?php session_start(); session_destroy(); ?>