NAME

Para::Frame::Cookies - Represent the cookies to send back to a client

DESCRIPTION

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.

new

req

added

hash

  $cookies->hash

Returns a hashref of cookies. (?)

get_val

Get SINGLE or MULTIPLE values depending on context

add_to_header

add

  $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

add_by_jar

remove

  $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

remove

as_html

  $cookies->as_html

Returns a html string as an representation of the cookies sen from the client.

AUTHOR

Jonas Liljegren <jonas@paranormal.se>

SEE ALSO

Para::Frame::Request, CGI::Cookie