Session Management with Perl

From Dev411: The Code Wiki

Perl's CPAN provides several options for adding session management capabilities to an application. The most popular modules are CGI::Session and Apache::Session. These session management systems use server-side session management with active client identification.

Several Perl web application frameworks also have wrappers for CGI::Session including Catalyst (Catalyst::Plugin::Session::CGISession) and CGI::Application (CGI::Application::Plugin::Session). Within a framework it is possible to use the session module (CGI::Session, Apache::Session, etc.) directly or use a wrapper.

Learning Perl Session Management

One of the best ways to learn session management with Perl is to install CGI::Session (http://search.cpan.org/~sherzodr/CGI-Session-4.02/lib/CGI/Session.pm) and create a test application that opens, modifies, and closes sessions. This will give you an understanding of how session management systems work. Apache::Session works in a similar way and the frameworks use CGI::Session through a wrapper.

See Also

Further Reading / External Links