CGI::S...er::chi(3pm)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.3 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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 πŸ‘‘βœ¨πŸŒΈ