Web::Authenticate::Session::Handler::Role - A Mouse::Role that defines what methods a Web::Authenticate::Session::Handler object should contain.
version 0.013
Creates a session for user. Returns an object that does Web::Authenticate::Session::Role.
my $session = $session_handler->create_session($user);
Deletes the current session.
$session_handler->delete_session;
Updates the expires time for session. Returns an object that does Web::Authenticate::Session::Role.
my $updated_session = $session_handler->update_expires($session);
Invalidates the current session if the user has one.
$session_handler->invalidate_current_session;
Invalidates all sessions for a user.
$session_handler->invalidate_user_sessions($user);
Returns the session for the current user. Returns undef if there is no session.
my $session = $session_handler->get_session;
Adam Hopkins <srchulo@cpan.org>
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.
To install Web::Authenticate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Authenticate
CPAN shell
perl -MCPAN -e shell install Web::Authenticate
For more information on module installation, please visit the detailed CPAN module installation guide.