-
-
30 Jan 2021 19:49:41 UTC
- Distribution: Catalyst-Plugin-Starch
- Module version: 0.08
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (107 / 0 / 0)
- Kwalitee
Bus factor: 1- 95.50% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (15.35KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Catalyst::Plugin::Starch::Cookie - Track starch state in a cookie.
SYNOPSIS
package MyApp; use Catalyst qw( Starch::Cookie Starch );
DESCRIPTION
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.
COMPATIBILITY
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
, andset_session_id
methods are not currently supported but could be if necessary.
The above listed un-implemented methods and attributes will throw an exception if called.
METHODS
get_session_cookie
Returns the CGI::Simple::Cookie object from Catalyst::Request for the session cookie, if there is one.
update_session_cookie
This is called automatically by the
finalize_headers
step in Catalyst. This method is provided if you want to override the behavior.AUTHOR AND LICENSE
See "AUTHOR" in Catalyst::Plugin::Starch and "LICENSE" in Catalyst::Plugin::Starch.
Module Install Instructions
To install Catalyst::Plugin::Starch, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Starch
perl -MCPAN -e shell install Catalyst::Plugin::Starch
For more information on module installation, please visit the detailed CPAN module installation guide.