Nephia::Plugin::Cookie - Cookie manipulation for Nephia
This plugin provides cookie manipulation feature.
package YourApp::Web; use Nephia plugins => ['Cookie']; app { my $count = cookie('count') || 0; $count++; cookie(count => $count); [200, [], "count = $count"]; };
# set cookie cookie($name => $value); # get cookie my $value = cookie($name);
Set or get specified cookie.
ytnobody <ytnobody@gmail.com>
To install Nephia, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nephia
CPAN shell
perl -MCPAN -e shell install Nephia
For more information on module installation, please visit the detailed CPAN module installation guide.