DESCRIPTION

This library can be used by CGI::Session to serialize session data. It uses \*(C`YAML\*(C', or the faster C implementation, \*(C`YAML::Syck\*(C' if it is available. \s-1YAML\s0 serializers exist not just for Perl but also other dynamic languages, such as \s-1PHP\s0, Python, and Ruby, so storing session data in this format makes it easy to share session data across different languages.

\s-1YAML\s0 is made to be friendly for humans to parse as well as other computer languages. It creates a format that is easier to read than the default serializer.

METHODS

freeze($class, \%hash)

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()"\*(C' Received two arguments. First is the class name, second is the \*(C`YAML\*(C' 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()"\*(C'

RELATED TO CGI::Session::Serialize::yaml…

\*(C`CGI::Session\*(C', \*(C`YAML\*(C', \*(C`YAML::Syck\*(C'.