CGI::Session::Serialize::json - serializer for CGI::Session
This library can be used by CGI::Session to serialize session data. Requires JSON::Syck. JSON is a type of YAML, with one extension: serialized JSON strings are actually valid JavaScript code that a browser can execute. Any langauge that has a YAML parser (Perl, PHP, Python, Ruby, C, etc) can also read data that has been serialized with JSON.
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 set_error()|CGI::Session::ErrorHandler/"set_error()"
set_error()|CGI::Session::ErrorHandler/"set_error()"
Received two arguments. First is the class name, second is the JSON data string. Should return thawed data structure on success, undef on failure. Error message should be set using set_error()|CGI::Session::ErrorHandler/"set_error()"
CGI::Session, JSON::Syck.
To install CGI::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Session
CPAN shell
perl -MCPAN -e shell install CGI::Session
For more information on module installation, please visit the detailed CPAN module installation guide.