资 源 简 介
NAME
CGI::Session::ID::sha - CGI::Session ID driver for generating SHA-1 based IDs
SYNOPSIS
use CGI::Session; $session = new CGI::Session("id:sha", undef);
DESCRIPTION
Use this module to generate SHA-1 encoded hexadecimal IDs for CGI::Session
objects. This library does not require any arguments. To use it, add
id:sha to the DSN string when creating CGI::Session objects.
Keep in mind
Keep in mind that a SHA-1 encoded hexadecimal string will have 40 characters.
Don"t forget to take this into account when using a database to store your
session. For example, when using the default table layout with MySQL you"d want
to create a table like:
CREATE TABLE sessions ( id CHAR(40) NOT NULL PRIMARY KEY, a_session NOT NULL, );
CAVEATS
There are no caveats with this module, but rather with the way CGI::Session
loads this module:
DSN st