MojoX::Session::Transport - Base class for transport
use base 'MojoX::Session::Transport'; sub get { my ($self) = @_; ... return $sid; } sub set { my ($self, $sid, $expires) = @_; ... return 1; }
MojoX::Session::Transport is a base class for transport objects in MojoX::Session.
get
Get session id. Returns it.
set
Set session id. Returns status.
To install MojoX::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::Session
CPAN shell
perl -MCPAN -e shell install MojoX::Session
For more information on module installation, please visit the detailed CPAN module installation guide.