NAME

Web::Authenticate::Session::Handler::Role - A Mouse::Role that defines what methods a Web::Authenticate::Session::Handler object should contain.

VERSION

version 0.013

METHODS

create_session

Creates a session for user. Returns an object that does Web::Authenticate::Session::Role.

my $session = $session_handler->create_session($user);

delete_session

Deletes the current session.

$session_handler->delete_session;

update_expires

Updates the expires time for session. Returns an object that does Web::Authenticate::Session::Role.

my $updated_session = $session_handler->update_expires($session);

invalidate_current_session

Invalidates the current session if the user has one.

$session_handler->invalidate_current_session;

invalidate_user_sessions

Invalidates all sessions for a user.

$session_handler->invalidate_user_sessions($user);

get_session

Returns the session for the current user. Returns undef if there is no session.

my $session = $session_handler->get_session;

AUTHOR

Adam Hopkins <srchulo@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Adam Hopkins.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.