Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: Cookie Failure

by steveAZ98 (Monk)
on Aug 02, 2000 at 21:58 UTC ( [id://25797]=note: print w/replies, xml ) Need Help??


in reply to Cookie Failure

I've had various problems with cookies working if I didn't set the path for the cookie. I currently use this code and it works for me. You should also think about setting the domain.
my $cook = $q->cookie( -name => 'uid', -value => $s->info->uid, -path => '/' ); $s->set ? print $q->header(-'cookie'=>$cook, -'type'=>'text/html') + : print $q->header(-'type'=>'text/html');
HTH

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found