Para::Frame::Cookies - Represent the cookies to send back to a client
You get this object by using Para::Frame::Request/cookies.
This object will be used to generate the headers before sending the page. Changes can be done on any point up unitl the headers are sent. Since the page is generated before it's sent, you can even change the cookies from inside a template, but think about doing it in an action instead, or in your user class.
For reading cookies sent by the client, use the /hash method.
$cookies->hash
Returns a hashref of cookies. (?)
Get SINGLE or MULTIPLE values depending on context
$cookies->add( \%namevalues, \%extra_params ) $cookies->add( \%namevalues )
For each name/value pair in %namevalues
, create a corresponding
cookie, with the addition of the %extra_params
. See CGI::Cookie
for valid params.
Default -path
is the Para::Frame::Site/home
$cookies->remove( @cookie_names ) $cookies->remove( \@cookei_names ) $cookies->remove( \@cookei_names, \%extra_params )
Removes the named cookies from the client, using HTTP headers.
Default -path
is the Para::Frame::Site/home
$cookies->as_html
Returns a html string as an representation of the cookies sen from the client.
Jonas Liljegren <jonas@paranormal.se>