[Cgi-session-user] session expiry???
Brought to you by:
sherzodr
From: Senthil N. <rs...@gm...> - 2005-10-21 17:26:25
|
Hi Sherzod, I have used a Session (latest ver 4.03) with 5 min as expiry and CGI cookie expiry also 5 min. Whats the difference between these two?? And Im not at all getting into "your session expired". What could be the problem? This is what im doing with session over CGI stuff. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D my $session =3D CGI::Session->load() or die CGI::Session->errstr; if ( $session->is_expired ) { print $session->header(); print "Your session expired!!"; exit(0); } elsif ( $session->is_empty ) { $session =3D $session->new(); } $session->expire("+5m"); my $cookie =3D $cgi->cookie(-name=3D>$session->name, -value=3D>$session->id= , -expires=3D>'+5m'); print $cgi->header(-cookie =3D> $cookie); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks Senthil Nathan R |