Home: General Discussions: Tutorial/Article Suggestions for The Learning Cent:
CGI::Cookie



kencl
User

Aug 27, 2000, 1:05 PM


Views: 44729
CGI::Cookie

I'd love to see an article on the proper use of CGI::Cookie. I'm having terrible trouble trying to modify a cookie after the print "Content-type: text/html\n\n" line.

Keep up the good work.


japhy
Enthusiast / Moderator

Aug 29, 2000, 6:53 PM


Views: 44728
Re: CGI::Cookie

I think an article (or tutorial) on HTTP headers is more in demand. I'm working on such an article. Cookies are set via the HTTP header "Set-cookie". You can only have ONE set of HTTP headers per response (unless you're using server-push) and after a blank line, the headers are over.

Look for the HTTP headers article in October.

------------------
Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher



kencl
User

Aug 29, 2000, 7:35 PM


Views: 44728
Re: CGI::Cookie

That's great Japhy. I'll be looking forward to it.

Please keep in mind that some people don't like to load the whole CGI.pm module, so they can't use:

print header(-cookie=>$cookiehandle);