Catalyst::Plugin::Starch::Cookie - Track starch state in a cookie.
package MyApp; use Catalyst qw( Starch::Cookie Starch );
This plugin utilizes the Starch::Plugin::CookieArgs plugin to add a bunch of arguments to the Starch object, search the request cookies for the session cookie, and write the session cookie at the end of the request.
See the Starch::Plugin::CookieArgs documentation for a list of arguments you can specify in the Catalyst configuration for Catalyst::Plugin::Starch.
Most of the methods documented in "METHODS" in Catalyst::Plugin::Session::Cookie are not supported at this time:
The make_session_cookie, calc_expiry, calculate_session_cookie_expires, cookie_is_rejecting, delete_session_id, extend_session_id, get_session_id, and set_session_id methods are not currently supported but could be if necessary.
make_session_cookie
calc_expiry
calculate_session_cookie_expires
cookie_is_rejecting
delete_session_id
extend_session_id
get_session_id
set_session_id
The above listed un-implemented methods and attributes will throw an exception if called.
Returns the CGI::Simple::Cookie object from Catalyst::Request for the session cookie, if there is one.
This is called automatically by the finalize_headers step in Catalyst. This method is provided if you want to override the behavior.
finalize_headers
See "AUTHOR" in Catalyst::Plugin::Starch and "LICENSE" in Catalyst::Plugin::Starch.
To install Catalyst::Plugin::Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Starch
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Starch
For more information on module installation, please visit the detailed CPAN module installation guide.