in reply to What software/perl module should I use to make perl cgi script persistent

I always start my websites with Dancer2. Why? Because it provides virtually all the things i'll need later, like session handling. Consider the following:

#!/usr/bin/env perl package App; use Dancer2; set session => 'YAML'; get '/' => sub { my $value = session( 'some.var' ) || 0; $value++; session 'some.var' => $value; return "The current value is $value"; }; start;

The docs contain a complete working example for handling the logging in and out of user sessions as well: https://metacpan.org/pod/Dancer2::Manual#Sessions-and-logging-in

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)