data/TWiki/CGISessionSerializeFreezethawDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package ==
     2 
     3 %TOC%
     4 =head1 NAME
     5 
     6 CGI::Session::Serialize::freezethaw - serializer for CGI::Session
     7 
     8 =head1 DESCRIPTION
     9 
    10 This library can be used by CGI::Session to serialize session data. Uses L<FreezeThaw|FreezeThaw>.
    11 
    12 =head1 METHODS
    13 
    14 =over 4
    15 
    16 =item freeze($class, \%hash)
    17 
    18 Receives two arguments. First is the class name, the second is the data to be serialized. Should return serialized string on success, undef on failure. Error message should be set using C<set_error()|CGI::Session::ErrorHandler/"set_error()">
    19 
    20 =item thaw($class, $string)
    21 
    22 Received two arguments. First is the class name, second is the I<frozen> data string. Should return thawed data structure on success, undef on failure. Error message should be set using C<set_error()|CGI::Session::ErrorHandler/"set_error()">
    23 
    24 =back
    25 
    26 =head1 LICENSING
    27 
    28 For support and licensing see L<CGI::Session|CGI::Session>
    29