Horje

Finally, Create a pgae to logout

Copy and Paste Following code to logout.php It will break your login session when You will click on logout.php
logout.php
Example: PHP
<?php session_start(); /* Starts the session */
session_destroy(); /* Destroy started session */
header("location:login.php");  /* Redirect to login page */
exit;
?>



Related Articles
How to Login Without Database PHP Login Tutorial

Single Articles
Learn to Terminate a Web WorkerPHP Login Tutorial

Type:
Php
Category:
Web Tutorial
Sub Category:
PHP Login Tutorial
Uploaded by:
Admin



Share on: