CGI::S...er::chi(3pm)
π CGI::Session::Driver::chi π
okay bestie, welcome to the CGI::Session::Driver::chi page β that's the 3pm one, the Perl module doc, and honestly? she's short, she's sweet, she's a whole vibe. This driver lets CGI::Session use CHI as a session store. That's it. That's the whole thing. Let's get into it π
β¨ SYNOPSIS β¨
look at her go, two whole ways to do it:
$s = CGI::Session->new(
"driver:chi",
$sid, {
driver => 'File',
root_dir => '/path/to/root'
});
$s = CGI::Session->new(
"driver:chi",
$sid, {
chi_class => 'My::CHI',
namespace => 'cgi',
});
first one: you just pass your CHI args straight through β like driver => 'File' and root_dir => '/path/to/root' β and she handles it. π
second one: you bring your own class with chi_class => 'My::CHI' plus a namespace => 'cgi', because sometimes you want to be β¨specificβ¨.
πΈ DESCRIPTION πΈ
This driver allows CGI::Session to use CHI as a session store. literally that's the job description, no notes. π
π¦ DRIVER ARGUMENTS π¦
okay so this is the important part, don't skip it:
The init sub accepts a hash ref with the same arguments as would be passed to CHI, plus an additional argument, chi_class. That's the one extra lil bestie in the group chat. π«Ά
heads up: that's the entire argument story β same-as-CHI plus chi_class. don't go inventing options, i'm watching π
π AUTHOR π
James Rouzier. <rouzier@gmail.com>
(iconic. we love a credited author. π)
π COPYRIGHT π
Copyright (C) 2013 James Rouzier
β LICENSE β
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
no cap on the warranty thing β it's genuinely "no warranty", the license means it fr fr π
and that's the page babes π this was perl v5.36.0, dated 2022-12-12, and it's the CGI::Session::Driver::chi(3pm) manual β go build something cute with it, you got this πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libcgi-session-driver-chi-perl 1.0.3-3 Β· GPL-2.0-or-later
- debian trixie: libcgi-session-driver-chi-perl 1.0.3-3 Β· GPL-2.0-or-later
- ubuntu noble: libcgi-session-driver-chi-perl 1.0.3-3 Β· GPL-2.0-or-later
- ubuntu resolute: libcgi-session-driver-chi-perl 1.0.3-3 Β· GPL-2.0-or-later
- ubuntu stonking: libcgi-session-driver-chi-perl 1.0.3-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms