# perldoc > CGI::Session::Serialize::storable

---
type: CommandReference
command: CGI::Session::Serialize::storable
mode: perldoc
section: ""
source: perldoc
---

## Quick Reference

- `CGI::Session->new(undef, undef, {Serializer => 'storable'})` — Use Storable serialization for session data
- `freeze($class, $data)` — Serialize data to string; returns undef on failure
- `thaw($class, $frozen)` — Deserialize frozen string; returns data structure or undef on failure

## Name

Serializer for CGI::Session using Storable

## Description

This library can be used by [CGI::Session](http://localhost/phpMan.php/perldoc/CGI%3A%3ASession/markdown) to serialize session data. It uses the Storable module.

## Methods

- `freeze($class, $data)` — Receives two arguments: class name and data to serialize. Returns serialized string on success, `undef` on failure. On failure, set error message using `set_error()` (see [CGI::Session::ErrorHandler](http://localhost/phpMan.php/perldoc/CGI%3A%3ASession%3A%3AErrorHandler/markdown)).
- `thaw($class, $frozen)` — Receives two arguments: class name and frozen data string. Returns thawed data structure on success, `undef` on failure. On failure, set error message using `set_error()`.

## See Also

- [CGI::Session](http://localhost/phpMan.php/perldoc/CGI%3A%3ASession/markdown) — for support and licensing
- [CGI::Session::ErrorHandler](http://localhost/phpMan.php/perldoc/CGI%3A%3ASession%3A%3AErrorHandler/markdown) — error handling base class