CGI::Lazy::Session::Data - CGI::Lazy::Session::Data documentation


CGI-Lazy documentation  | view source Contained in the CGI-Lazy distribution.

Index


LEGAL

Top

NAME

Top

CGI::Lazy::Session::Data

SYNOPSIS

Top

	use CGI::Lazy;

	our $q = CGI::Lazy->new({

					tmplDir 	=> "/templates",

					jsDir		=>  "/js",

					plugins 	=> {

						mod_perl => {

							PerlHandler 	=> "ModPerl::Registry",

							saveOnCleanup	=> 1,

						},

						ajax	=>  1,

						dbh 	=> {

							dbDatasource 	=> "dbi:mysql:somedatabase:localhost",

							dbUser 		=> "dbuser",

							dbPasswd 	=> "letmein",

							dbArgs 		=> {"RaiseError" => 1},

						},

						session	=> {

							sessionTable	=> 'SessionData',

							sessionCookie	=> 'frobnostication',

							saveOnDestroy	=> 1,

							expires		=> '+15m',

						},

					},

				});

	$q->session->data->name($q->session->sessionID);

	$q->session->data->banner($message);

	print $q->header,

	      $q->session->data->name;

DESCRIPTION

Top

CGI::Lazy::Session::Data is simply a data container for CGI::Lazy::Session. Its a separate object just so we can cleanly use an autoloader without running into namespace problems with the Session object. This way, you have the widest possible range of names to use for session data.


CGI-Lazy documentation  | view source Contained in the CGI-Lazy distribution.