I need to keep a session alive for 10 minutes and then destroy it.
Try this code!
<?php session_start(); if(time() - $_session()[login_time] > 600){ header("location:login.php"); } ?>
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in