[sf-perl] Secure Cookies outside of catalyst?
not.com at gmail.com
Sat Dec 4 11:19:43 PST 2010
To secure your cookie, you want it to be sent only over a secure
socket, to your application in your domain. Looking at "perldoc
CGI::Cookie" or "perldoc Apache::Cookie" shows examples.
Something like this should do-
my $c = new CGI::Cookie(-name => 'foo',
-value => 'bar',
-expires => '+3M',
-path => '/cgi-bin/database',
-secure => 1,
-httponly => 1
Sending the Cookie to the Browser
Under mod_perl, pass in an Apache request object:
More information about the SanFrancisco-pm