T
Ted Byers
I finally figured out how to clear the session created using:
my $session = CGI::Session->new('driver:mysql',$query,{ DataSource =>
'dbi:mysqlrofitorius',
User =>
'yyyyyyy',
Password =>
'xxxxxxx'});
To do so, I am using:
$session->clear('CGISESSID');
$session->delete();
$session->flush();
my $scriptname = $query->url(-path=>1);
$scriptname =~ s/cgi-bin\/logout\.pl/login\.html/;
print $query->redirect(-location=>"$scriptname",-status=302);
#print $session->header(-location=>$scriptname);
When I do this, the session info goes away, but nothing I do has had
the effect of redirecting the user to the login page. How do I get
this to redirect to the login page?
Thanks
Ted
my $session = CGI::Session->new('driver:mysql',$query,{ DataSource =>
'dbi:mysqlrofitorius',
User =>
'yyyyyyy',
Password =>
'xxxxxxx'});
To do so, I am using:
$session->clear('CGISESSID');
$session->delete();
$session->flush();
my $scriptname = $query->url(-path=>1);
$scriptname =~ s/cgi-bin\/logout\.pl/login\.html/;
print $query->redirect(-location=>"$scriptname",-status=302);
#print $session->header(-location=>$scriptname);
When I do this, the session info goes away, but nothing I do has had
the effect of redirecting the user to the login page. How do I get
this to redirect to the login page?
Thanks
Ted