View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Mattia Barbon > CGI-Session-Hidden-0.03 > CGI::Session::Driver::hidden

Download:
CGI-Session-Hidden-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

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

SEE ALSO ^

CGI::Session

syntax highlighting: