Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Loging a user out with CGI and Cookies?

by r.joseph (Hermit)
on Apr 15, 2001 at 23:42 UTC ( #72691=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $q = new CGI;
    
    ...
    -expires => '+1h',);
    
    print $q->header(-cookie=>$cke1);
    
  2. or download this
    my $q = new CGI;
    my $cke1 = new CGI::Cookie(
    ...
    print $q->redirect(
    -cookie=>$cke1,
    -uri=>'http://mypage.com/my_login.html');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://72691]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2021-10-17 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?