>>>>> "Jeff" == Jeff Anderson <[EMAIL PROTECTED]> writes:

Jeff> The FAQ shows how to retrieve cookies:
Jeff> [% USE CGI %]
Jeff> <p>The value is [% CGI.cookie('cookie_name') |
Jeff> html %]

Jeff> How do you set a value? I'd really like to be
Jeff> able to set the cookie inside the template
Jeff> instead of a mod_perl handler (i am using
Jeff> Apache::Template), by the way.

You can't set a header from the body.  You can set it only from the
header, and Apache::Template doesn't give any way to add additional
headers.  You'll need to write your own mod_perl handler class, perhaps
derived from Apache::Template (I do that).

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to