CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)

CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout3pm

Log users out

Overview

Simple controller role for logging users out. Provides a "logout" action (at /logout by default) which redirects the user to the homepage by default.

Actions

logout : Chained('/') PathPart('logout') Args(0)

Calls "$c->logout", then redirects to the logout uri retuned by "$self->redirect_after_logout_uri".

Methods

redirect_after_logout_uri

Returns the uri to redirect to after logout.

Defaults to "$c->uri_for('/');" you can override this by setting the "<redirect_after_logout_uri"> key in config to a path to be passed to "$c->uri_for".

Alternatively, you can write your own redirect_after_logout_uri in your Login controller if you are extending CatalystX::SimpleLogin and it will override the method from this role.

do_clear_session_on_logout

Deletes the session after a logout.

To enable this use the following in your config:
__PACKAGE__->config('Controller::Login' => { clear_session_on_logout => 1 });

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12–13

Authors

See CatalystX::SimpleLogin for authors.

License

See CatalystX::SimpleLogin for license.

From libcatalystx-simplelogin-perl 0.21-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.