Finally, the last thing we need is a log out script. Just put a link called Log Out anywhere in the members section which directs the user to this script:
<?php // expire cookie setcookie ("loggedin", "", time() - 3600); echo "You are now logged out.<br>"; echo "<a href=\"login.html\">Log in</a>."; ?>
0 Comments:
Post a Comment