[eluser]Volkscom[/eluser]
Hi,
I'm using php session functions in my project and not using codeiniter's session class.I need to set session time out.How can I do this?.
I write the following function in helper and this give an error
in myhelp_helper.php{
function sesion_timeout(){
// set timeout period in seconds
$inactive = 60;
// check to see if $_SESSION['timeout'] is set
if(isset($_SESSION['timeout']) ) {
$session_life = time() - $_SESSION['start'];
if($session_life > $inactive)
{ session_destroy(); }
}
$_SESSION['timeout'] = time();
}
}
I anyone know to solve this,Please help me.......
Thanks in advance