NAME
MojoX::Session::Transport::Cookie - Cookie Transport for MojoX::Session
SYNOPSIS
my $session = MojoX::Session->new(
transport => MojoX::Session::Transport::Cookie->new(tx => $tx),
...
);
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.
tx
my $tx = $transport->tx;
$transport = $transport->tx($tx);
Get and set Mojo::Transaction object.
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.
AUTHOR
vti, vti@cpan.org
.
COPYRIGHT
Copyright (C) 2008, Viacheslav Tikhanovskii.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.