Web::Authenticate::Session::Handler - The default implementation of Web::Authentication::Session::Handler::Role.
version 0.013
Sets the object that does Web::Authenticate::Sesssion::Storage::Handler::Role. This is required an has no default.
Sets the object that does Web::Authenticate::Cookie::Handler::Role. This is required. Default is Web::Authenticate::Cookie::Handler.
Sets the amount of time a session will expire in after last successful page load. Default is 86,400 (one day).
Sets the session_id cookie name. Default is 'session_id'.
Creates session for the user and stores the cookie for the session in the user's browser.
Deletes the current session.
$session_handler->delete_session;
Updates the expires time for the logged in user to now + "session_expires_in_seconds".
Invalidates the user's current session if there is one.
Deletes all sessions for user.
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.
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.