stuart7398 Posted April 11, 2008 Share Posted April 11, 2008 Hi. the members area of my site seem to automatically logout after 45 minutes of inactivity. i can't find anywhere in the files how to reduce this time to 15 minutes. has it anything to do with the following session? as this is the only file that directs to the 'you have been logged out page. what can i add to the following code to achieve this task. thanks, stu. <?php //Start session session_start(); //Check whether the session variable //SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) { header("location: access-denied.php"); exit(1); } ?> Link to comment https://forums.phpfreaks.com/topic/100571-automaticly-logged-out/ Share on other sites More sharing options...
darkfreaks Posted April 11, 2008 Share Posted April 11, 2008 what is the code for the logout page it is prolly there ??? Link to comment https://forums.phpfreaks.com/topic/100571-automaticly-logged-out/#findComment-514370 Share on other sites More sharing options...
stuart7398 Posted April 11, 2008 Author Share Posted April 11, 2008 this is the logout page [code ]<?php //Start session session_start(); //Unset the variable SESS_MEMBER_ID stored in session unset($_SESSION['SESS_MEMBER_ID']); ?> Link to comment https://forums.phpfreaks.com/topic/100571-automaticly-logged-out/#findComment-514375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.