Search found 1 match

by deepinlife
Sun May 16, 2010 8:15 am
Forum: PHP - Code
Topic: sessions how to check for inactivity
Replies: 1
Views: 113

sessions how to check for inactivity

guys , i use this piece of code to check if the page is active , i put it in every page in my project , in a case it has failed , why ? session_start(); if( !$_SESSION['UserToProcess'] ) {header("Location: logout.php");} should i use session_start(); if( isset($_SESSION['UserToProcess']) )...