Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Re: Re: Cookies

by Cody Pendant (Prior)
on Dec 26, 2003 at 00:43 UTC ( [id://317029]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Cookies
in thread Cookies, how can you set one if it must be done before the header?

my $cookiename = cookie( -name => 'cookie', -value => 'loggedin', -expires => '+1h' ); print header, start_html();

You haven't actually set the cookie just by doing that. You've created a cookie but then not sent it to the browser. You need to print the header and explicitly tell it to include the cookie.



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found