Jump to content

automaticly logged out


stuart7398

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.