++ed by:
KEEDI FARACO JETEVE

3 PAUSE users
2 non-PAUSE users.

Вячеслав Тихановский
and 10 contributors

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