CGI::Session::Serialize::storable - Serializer for CGI::Session
| Use Case | Command | Description |
|---|---|---|
| Set Storable serializer in CGI::Session | CGI::Session->new(undef, undef, {Serializer => 'storable'}) | Use Storable to serialize session data for persistence. |
| Serialize session data manually | CGI::Session::Serialize::storable::freeze('CGI::Session::Serialize::storable', \%data) | Directly freeze a hash reference into a Storable string. |
| Deserialize session data manually | CGI::Session::Serialize::storable::thaw('CGI::Session::Serialize::storable', $string) | Thaw a Storable string back into a data structure. |
This library can be used by CGI::Session to serialize session data. Uses Storable.
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()""
Receives two arguments. First is the class name, second is the *frozen* 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()""
For support and licensing see CGI::Session
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-08 10:08 @216.73.216.23
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format