NAME
Web::Authenticate::Session::Storage::Handler::Role - A Mouse::Role that defines what methods a Web::Authenticate::Session::Storage::Handler object should contain.
VERSION
version 0.013
METHODS
create_session
Creates a session for user in storage. Returns a Web::Authenticate::Session::Role upon success, undef upon failure.
my $session = $session_storage_handler->create_session($user, $session_id, $expires);
get_session
Gets the session with the session id $session_id, as long as it has not expired.
my $session = $session_storage_handler->get_session($session_id);
update_expires
Updates the time a session expires.
$session_storage_handler->update_expires($session_id, $expires);
delete_session
Deletes a session from storage.
$session_storage_handler->delete_session($session_id);
invalidate_user_sessions
Updates the time a session expires.
$session_storage_handler->invalidate_user_sessions($user);
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.