Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Session termination using use CGI::Session; redirection tot eh loginpage doesn't yet work

Reply
Thread Tools

Session termination using use CGI::Session; redirection tot eh loginpage doesn't yet work

 
 
Ted Byers
Guest
Posts: n/a
 
      12-21-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AVI-clip from landscape tot portrait? Willem Computer Support 7 08-24-2006 07:35 AM
How to define function which operates on iterator convertible toT* AlesD C++ 3 08-10-2004 02:33 PM
how to redirect to loginpage after session timeout Ather Ali Shaikh ASP .Net 1 05-30-2004 03:58 AM
how to redirect to loginpage after session timeout francois ASP .Net 2 05-25-2004 02:21 PM
Unable tot find C:\my computer\ CooTer Computer Support 6 03-01-2004 03:44 AM



Advertisments