# perldoc > Apache::Session::Serialize::Storable

---
type: CommandReference
command: Apache::Session::Serialize::Storable
mode: perldoc
section: ''
source: perldoc
---

## Quick Reference
- `serialize($ref)` — Freeze a Perl data structure into a binary string using `Storable`'s `nfreeze()`.
- `unserialize($zipped)` — Thaw a binary string back into a Perl data structure using `Storable`'s `thaw()`.

## Name
Apache::Session::Serialize::Storable - Use Storable to zip up persistent data

## Synopsis
perl
use Apache::Session::Serialize::Storable;

$zipped = Apache::Session::Serialize::Storable::serialize($ref);
$ref    = Apache::Session::Serialize::Storable::unserialize($zipped);
## Description
This module fulfills the serialization interface of [Apache::Session](http://localhost/phpMan.php/perldoc/Apache%3A%3ASession/markdown). It converts session data using `nfreeze()` and `thaw()` from `Storable`, producing a binary object ready for storage.

## See Also
- [Apache::Session::Serialize::Base64](http://localhost/phpMan.php/perldoc/Apache%3A%3ASession%3A%3ASerialize%3A%3ABase64/markdown)
- [Apache::Session](http://localhost/phpMan.php/perldoc/Apache%3A%3ASession/markdown)