Вячеслав Тихановский > MojoX-Session > MojoX::Session::Transport::Cookie

Download:
MojoX-Session-0.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

MojoX::Session::Transport::Cookie - Cookie Transport for MojoX::Session

SYNOPSIS ^

    my $session = MojoX::Session->new(
        transport => MojoX::Session::Transport::Cookie->new,
        ...
    );

DESCRIPTION ^

MojoX::Session::Transport::Cookie is a transport for MojoX::Session that gets and sets session id to and from cookies.

ATTRIBUTES ^

MojoX::Session::Transport::Cookie implements the following attributes.

path

    my $path = $transport->path;
    $transport->path('/');

Get and set cookie path.

domain

    my $domain = $transport->domain;
    $transport->domain('example.com');

Get and set cookie domain.

secure

    my $secure = $transport->secure;
    $transport->secure(1);

Get and set cookie secure flag.

METHODS ^

MojoX::Session::Transport::Cookie inherits all methods from MojoX::Session::Transport.

get

Get session id from request cookie.

set

Set session id to the response cookie.

syntax highlighting: