Gossamer Forum
Quote Reply
Retrieving Cookies
Sorry if this has been posted before, I haven't been able to find the answer so far.

Is there a way to directly use a template tag to retriever a cookie? I have been able to pull this off using globals, but wonder if there is a better way.

I did it by setting a new global variable equal to:
sub {
use GT::CGI;
my $cgi = new GT::CGI;

Call that global variable in a template and it prints the value of the cookie by that name.

Any ideas?
Michael Coyne
Subject Author Views Date
Thread Retrieving Cookies mcoyne 2191 Feb 26, 2002, 10:48 AM
Post Re: [mcoyne] Retrieving Cookies
Paul 2107 Feb 26, 2002, 11:18 AM