NAME
CGI::Session::Driver::hidden - persistent session using hidden fields
SYNOPSIS
In the CGI script:
use CGI::Session;
my $session = new CGI::Session("driver:hidden", undef,
{CGI=>$cgi_obj});
In the HTML (pseudo-code):
<input type="hidden" name="$CGI::Session::NAME" value="$session->id()" />
or
<input $session->field() />
DESCRIPTION
This driver module for CGI::Session 4.x allows storing the session inside a hidden field in the HTML page.
The semantics are somewhat different than standard driver modules, but good enough for most uses.
METHODS
field
$attributes = $session->field;
Produces type
, name
and value
attributes to be used inside and HTML <input>
tag.
AUTHOR
Mattia Barbon <mbarbon@cpan.org>.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SOURCES
The latest sources can be found on GitHub at http://github.com/mbarbon/cgi-session-hidden/tree