Gossamer Forum
Home : General : Perl Programming :

sessions delete not working

Quote Reply
sessions delete not working
i am using the follow codes to add and end a session:

add
Code:
$path_session = '/home/domain/sessions/';
$session = new CGI::Session("driver:File",undef,{'Directory'=>"$path_session"});
$session->param('painel_usuario',"$id $name");
$session->param('_IDLE_EXPIRY' => time + 1800);
$session->expire('+1d');
$sid = $session->id();


ends
Code:
CGI::Session->name($scookie);
$session = new CGI::Session("driver:File",$scookie,{'Directory'=>"$path_session"}) or die "$!";
$session->clear(["~logged-in"]);
$session->clear(["_IDLE_EXPIRY"]);
$session->clear();
$session->expire('+1m');
$session->delete();


how could i delete the expireds ones using the module: CGI::Session::ExpireSessions;
i read the documents but i didnt got the idea of how it works
Quote Reply
Re: [NamedRisk] sessions delete not working In reply to
Try &CGI::Session::ExpireSessions::expire_*_session

Last edited by:

mkp: Feb 26, 2006, 6:30 AM