Home

Thursday, July 28, 2011

Automatic Logout after 1 minutes of inactive PHP


Logout after 1 minutes.
$_SESSION['last_click']=time();
if(($_SESSION['last_click'] + 1*60) < time())
{
session_destroy();
header("location:index.php");
}

No comments:

Post a Comment

rathoddhirendra.blogspot.com-Google pagerank and Worth