Database mysql PHP Code

Inactive in site then auto logout using php

Hi friends, I have the requirement that when a user login in the site and he/she inactive in the site more than 5 minutes then user will logout from the site. For this i followed below code and i succeed, In the login.php file : <?php session_start(); include("dbconfig.php"); if(isset($_POST)) { $current_time =time(); $current_date=date("d-m-Y"); extract($_POST); $query …

Continue Reading