Hi
Monolith-0. I have a question, and a comment. If you are chosing to find out how it is that you create, retrieve, and delete cookies without using the amazing
<a href="http://www.perlmonks.org/index.pl?node=CGI.pm&lastnode_id=3333">CGI.pm</a> for purely academic purposes, then, I applaud you. It is always good to understand the mechanisms at work, especially when they are as common and complex as cookies.
If you were to do a perldoc
perlman:CGI::Cookie you would see that right at the 3rd paragraph it says:
For full information on cookies see
http://www.ics.uci.edu/pub/ietf/http/rfc2109.txt.
This link should give you everything you need about cookies.
However, here comes the angry old man in me. If you are asking how to do cookies in Perl without using CGI.pm because for some reason you have chosen to roll your own mechanism instead of using the well documented, standard, loved CGI.pm, then please, don't. On this site we have already discussed to death the reasons to use standard modules (a few of the reasons can be found:
Yet Another Cargo Cult non-use of CGI.pm,
Perfect example of why to use CGI.pm), and other places if you look hard.
Please, oh please, oh please... use the standard modules in a production setting...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.