Lokang 

PHP and MySQL

logout

Logout ends a users access to the website if he/she is login before.
 

<?php
setcookie('id', 0, time()-1, '/');
setcookie('password', '', time()-1, '/');
header('Location: login.php');
?>