CGI::Sessiondata in PostgreSQL
This is an extension to the
CGI::Session class, which
stores the session data in two PostgreSQL tables: one keeps track of
the age of the session, the other table has an compound key field of
(session, variable_name), which allows it to look up a session's
values for a particular variable. Session ID's are fixed length
char(16)), other data is varying length
varchar). You'll need to install the postgresql interface to ruby. The comments in this version give
a script to create the PostgreSQL tables, but installing PostgreSQL is
much better covered in the PostgreSQL
Documentation. In particular, you'll want to adjust the authentication
between the program and the database.
Here it is!