-
-
15 Apr 2010 20:42:49 UTC
- Distribution: CGI-Session-Hidden
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (480 / 0 / 0)
- Kwalitee
Bus factor: 1- 32.50% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (3.85KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CGI::Session
- Module::Build
- Test::More
- if
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
andvalue
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
SEE ALSO
Module Install Instructions
To install CGI::Session::Hidden, copy and paste the appropriate command in to your terminal.
cpanm CGI::Session::Hidden
perl -MCPAN -e shell install CGI::Session::Hidden
For more information on module installation, please visit the detailed CPAN module installation guide.