---
name: "CGI::Session::Driver::chi"
section: "3pm"
platform: "linux"
package: "libcgi-session-driver-chi-perl"
version: "1.0.3-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Session::Driver::chi"
---

# CGI::Session::Driver::chi(3pm)

This driver allows CGI::Session to use CHI as a session store

## NAME

CGI::Session::Driver::chi - This driver allows CGI::Session to use CHI as a session store

## SYNOPSIS

`$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',\
     });

## DESCRIPTION

This driver allows CGI::Session to use CHI as a session store

### DRIVER ARGUMENTS

The init sub accepts a hash ref with the same arguments as would be passed to CHI, plus an additional argument, chi\_class.

## AUTHOR

James Rouzier. \<rouzier@gmail.com\>

## 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.
