can anyone suggest me a way to implement code for session to expire after 15 min when a peron is logged into the site if he is logged in for more than 15 min..
these are the two sessions in log in page .
$_SESSION['email']
$_SESSION['password']
below given is the code for log out page .
Code: Select all
<?php
session_start();
session_unregister('email');
session_unregister('password');
session_destroy();
?>