Ryszard has asked for the wisdom of the Perl Monks concerning the following question:
I'm doing an application with CGI, CGI::Application and HTML::Template and need to set some cookies.
The only method i can get to set the cookie is: print q->header(-cookie=>$cookie)While this works, it also prints up on the screen the Content Type stuff ( Content-Type: text/html; charset=ISO-8859-1 ) i'd prefer it not to display. After reading the documentation it mentions i need to muck around with the HTML header, but for the life of me I cant work it out.
If someone could give me an example, or point me to some more verbose documentation, i'd gladly appreciate it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template and setting Cookies
by rob_au (Abbot) on Dec 08, 2001 at 15:31 UTC | |
|
Re: HTML::Template and setting Cookies
by rogueFalcon (Beadle) on Dec 09, 2001 at 03:38 UTC | |
|
Re: HTML::Template and setting Cookies
by Ryszard (Priest) on Dec 09, 2001 at 12:29 UTC |