NAME
Trickster::Cookie - Secure cookie handling for Trickster
SYNOPSIS
use Trickster::Cookie;
my $cookie = Trickster::Cookie->new(
secret => 'your-secret-key',
defaults => {
path => '/',
httponly => 1,
secure => 1,
},
);
# Set a cookie
$cookie->set($res, 'session_id', $session_id, max_age => 3600);
# Get a cookie
my $session_id = $cookie->get($req, 'session_id');
# Delete a cookie
$cookie->delete($res, 'session_id');
DESCRIPTION
Trickster::Cookie provides secure cookie handling with HMAC signing, automatic escaping, and sensible defaults.