NAME
Web::Authenticate::Session::Handler - The default implementation of Web::Authentication::Session::Handler::Role.
VERSION
version 0.013
METHODS
session_storage_handler
Sets the object that does Web::Authenticate::Sesssion::Storage::Handler::Role. This is required an has no default.
cookie_handler
Sets the object that does Web::Authenticate::Cookie::Handler::Role. This is required. Default is Web::Authenticate::Cookie::Handler.
session_expires_in_seconds
Sets the amount of time a session will expire in after last successful page load. Default is 86,400 (one day).
session_id_cookie_name
Sets the session_id cookie name. Default is 'session_id'.
create_session
Creates session for the user and stores the cookie for the session in the user's browser.
delete_session
Deletes the current session.
$session_handler->delete_session;
update_expires
Updates the expires time for the logged in user to now + "session_expires_in_seconds".
invalidate_current_session
Invalidates the user's current session if there is one.
invalidate_user_sessions
Deletes all sessions for user.
get_session
Returns the session for the logged in user. Returns undef if there is no session. If an invalid session is found in the user's cookies, that session will be deleted from their cookies. If the user has a session id in their browser that is not valid, the session id will be deleted from their cookie and from storage.
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.