NAME

Web::Authenticate::Cookie::Handler - The default implementation of Web::Authentication::Cookie::Handler::Role

VERSION

version 0.012

METHODS

Sets the prefix to go before cookie names. Default is 'web_authenticate_'.

domain

See CGI::Cookie. Default is undef.

path

See CGI::Cookie. Default is undef.

secure

See CGI::Cookie. Default is undef.

httponly

See CGI::Cookie. Default is undef.

samesite

See CGI::Cookie. Default is undef.

Creates a session for user and sets it on the browser. expires must be the number of seconds from now when the cookie should expire.

$cookie_handler->set_cookie($name, $value, $expires_in_seconds);

Gets the value of the cookie with name. Returns undef if there is no cookie with that name, or it has expired.

my $cookie_value = $cookie_handler->get_cookie($name);

Deletes cookie with name if it exists.

$cookie_handler->delete_cookie($name);

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.