I am looking to create a system which on signup will create a subdomain on my website for the users account area.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Try setting the session timeout to 10 minutes.
ReplyDeleteini_set('session.gc_maxlifetime',10);
session_start();
ReplyDelete// 10 mins in seconds
$inactive = 600;
$session_life = time() - $_session['timeout'];
if($session_life > $inactive)
{ session_destroy(); header("Location: logoutpage.php"); }
S_session['timeout']=time();
The code above was taken from this particular page.
compare timestamps between two requests, one from the current request, one stored in the session.
ReplyDelete