NAME

Webs::CGI::Session - Plugin module for Webs::CGI to handle basic session management

head1 VERSION

Version 0.1

SYNOPSIS

Webs::CGI::Session is a basic module to accomodate Webs::CGI. It offers basic session management using DB_File to store its data.

use Webs::CGI;
use Webs::CGI::Session;

my $s = Webs::CGI::Session->new;

if (exists $_SESSION{user}) {
    ...
}

$_SESSION{user} = 'test1234';

Webs::CGI::Session->session_id

Returns a session id of the cookie

my $s = Webs::CGI::Session->new;
print "Session ID: " . $s->session_id;

Webs::CGI::Session->session_flush

Closes the session properly

$session->session_flush;