Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ britanniabd.com/

/home/bdapparelinfo/britanniabd.com/session.inc

<?php

    ini_set('session.use_cookies', 1);

	ini_set('session.use_only_cookies', 1);

	session_start();

	if (!isset($_SESSION['userrole']))

	{

		//header('Location:admin01_index.php');

	}

	else 

	{

		//echo $_SESSION['User_Name'];

	}	

	 

	////////////// timeout //////////////////////// 

	

		if (!isset($_SESSION['timeout_idle'])) {

			 $_SESSION['timeout_idle'] = time() + MAX_IDLE_TIME;

			 } else {

			 if ($_SESSION['timeout_idle'] < time()) {   

				//destroy session

			 } else {

				$_SESSION['timeout_idle'] = time() + MAX_IDLE_TIME;

			 }

		} 
?>