|Syntactic Confectionery Delight|
CGI::Cookieby wardk (Deacon)
|on Sep 14, 2000 at 01:02 UTC||Need Help??|
Item Description: Manage Cookies via Perl CGI
Review Synopsis: Review, resources and simple usage of CGI::Cookie
revised: 10/22/2000 - unhappy with original "review"
CGI::Cookie is an easy way of managing cookies for your website.
CGI::Cookie is authored by Lincoln D. Stein
There are many available documents and examples available to show you how to utilize this module. I am hoping that I can create a review, and not just another coding example.
Below is an example, however it is not near as complete as the examples that may be found at the following sites:
I have used this module on the following platforms without issue.
Why use it?
What I've used it for
For those wanting a quickie usage without following the above links...
This example will use CGI and CGI::Cookie. It will create a cookie, set the cookie via the HTTP header and then retrieve the cookie and display it.
In my example, this is what gets sent to the browser to create the cookie...obtained via an NT command line. Note that at a command line, you will not see the set cookie in the print loop, as there was no browser to do the storing/retrieving.
Set-Cookie: CookieName=CookieValue; path=/C:\wardk\cookie.pl Date: Wed, 13 Sep 2000 21:00:35 GMT Content-Type: text/html
Here is the code that created the above. Happy coding!