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

Download:
MojoX-Session-0.27.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: MojoX-Session-0.31

NAME ^

Mojolicious::Plugin::Session - Session plugin for Mojolicious

SYNOPSIS ^

    # Mojolicious::Lite
    plugin session =>
      {stash_key => 'mojox-session', store => 'dbi', expires_delta => 5};

    # Mojolicious
    $self->plugin(
        session => {
            stash_key     => 'mojox-session',
            store         => 'dbi',
            expires_delta => 5
        }
    );

DESCRIPTION ^

Embedded Mojo sessions are recommended for using instead of this module.

Mojolicious::Plugin::Session is a session plugin for Mojolicious. It creates MojoX::Session instance with provided parameters, passes $tx object before dispatch method is called and calls flush just after dispatching. MojoX::Session instance is placed in the stash.

ATTRIBUTES ^

Mojolicious::Plugin::Session accepts all the attributes accepted by MojoX::Session and implements the following.

stash_key

    MojoX::Session instance will be saved in stash using this key.

SEE ALSO ^

MojoX::Session

Mojolicious

syntax highlighting: