A
alexjaquet
Hi,
After reading the documentation about CGI::Session I didn't find any
way to create a session when it's expired.
Now I'm using the following code to create a new session
local our $session_id=$query->param('session');
if ($session_id eq '' or $session_id eq '$SESSIONID') {
$session = new CGI::Session("driver:File", undef,
{Directory=>"$session_dir"});
$session->expire(3600);
$session_id = $session->id();
}
how can I extend this piece of code when a session exist but expired ?
Thanks for your advice.
Alexandre JAQUET
After reading the documentation about CGI::Session I didn't find any
way to create a session when it's expired.
Now I'm using the following code to create a new session
local our $session_id=$query->param('session');
if ($session_id eq '' or $session_id eq '$SESSIONID') {
$session = new CGI::Session("driver:File", undef,
{Directory=>"$session_dir"});
$session->expire(3600);
$session_id = $session->id();
}
how can I extend this piece of code when a session exist but expired ?
Thanks for your advice.
Alexandre JAQUET