Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1) Cookies are to be used with the header request. Does that mean I print cookies on the line: print header, start_html; ? Or does it mean I can use them anytime after the request is sent?
2) What type of information is stored in cookies? Ie..let's say we have a user:pass login script, do we set both values in a single cookie or use separate cookies or..?
3) If it is to be used/set on that line above, how does that work? I mean, let's say we have a form to ask for the user:pass info, if you already set the cookies before the form the values will come back undefined.
4) After a login the cookie is stored, how do you remove a cookie using a 'log out' button?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cookies
by The Mad Hatter (Priest) on Jun 30, 2003 at 06:03 UTC | |
•Re: Cookies
by merlyn (Sage) on Jun 30, 2003 at 16:01 UTC |