Satoshi Azuma > Nephia > Nephia::Plugin::Cookie

Download:
Nephia-0.87.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Nephia::Plugin::Cookie - Cookie manipulation for Nephia

DESCRIPTION ^

This plugin provides cookie manipulation feature.

SYNOPSIS ^

    package YourApp::Web;
    use Nephia plugins => ['Cookie'];
    app {
        my $count = cookie('count') || 0;
        $count++;
        cookie(count => $count);
        [200, [], "count = $count"];
    };

DSL ^

cookie

    # set cookie
    cookie($name => $value);
    
    # get cookie
    my $value = cookie($name);

Set or get specified cookie.

AUTHOR ^

ytnobody <ytnobody@gmail.com>

syntax highlighting: