sniped22 Posted August 31, 2007 Share Posted August 31, 2007 on my page (status.php) there is information from a session. How can I tell once the session has expired? I want to redirect to login.php once the session expires. thanks Quote Link to comment https://forums.phpfreaks.com/topic/67400-expired-session/ Share on other sites More sharing options...
Fadion Posted August 31, 2007 Share Posted August 31, 2007 session_start(); if(!isset($_SESSION['status'])){ header('Location: login.php'); } Quote Link to comment https://forums.phpfreaks.com/topic/67400-expired-session/#findComment-338369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.