NAME
Database::BI::Sessions - Session cookies that are Secure over https
VERSION
0.023.1
SYNOPSIS
$app->sessions(Database::BI::Sessions->new(cookie_name => 'database_bi'));
DESCRIPTION
A Mojolicious::Sessions whose cookie carries the Secure attribute on every reply to a request that came over https (directly, or through a trusted proxy that says so), as well as when secure is set. Database::BI uses it for the login session (see "Logging in" in Database::BI).
METHODS
store
API SPECIFICATION
INPUT
$c: the controller whose session is written
OUTPUT
As "store" in Mojolicious::Sessions. The cookie is Secure when secure is set or $c->req->is_secure is true.
AUTHOR
Nigel Horne <njh@nigelhorne.com>
LICENCE AND COPYRIGHT
Copyright 2026 Nigel Horne.
Usage is subject to the GPL2 licence terms.