i use CGI.pm, which is pretty simple. i think this might be the old way to
do it, but it works for me. (important - you have to write your cookie
header BEFORE you write the Content-Type header, or else they'll just show
up in the browser window)
# set a cookie:
use CGI::Cookie;
my ($cookie) = new CGI::Cookie(
-name => 'size',
-value => 'medium',
);
print "Set-Cookie: $cookie\n"; # <- prints the cookie header
# then to get it back:
my (%cookies) = fetch CGI::Cookie;
my ($age) = $cookies{'size'}->value;
best,
jason
> > Does anyone know where I might be able to find out some example
> of how to
> > use cookies with Perl? I have looked in the docs at HTTP::Cookies, and
> > tried to put together a few examples but with no luck. I find
> the docs a
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web