The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Web::Authenticate::Cookie::Handler::Role - A Mouse::Role that defines what methods a Web::Authenticate::Cookie::Handler object should contain.

VERSION

version 0.003

METHODS

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.