public function save(ServletSessionInterface $session)
{
// don't save the session if it has been destroyed
if ($session->getId() == null) {
return;
}
// update the checksum and the file that stores the session data
if (apc_store($session->getId(), $this->marshall($session)) === false) {
throw new SessionCanNotBeSavedException(sprintf('Session with ID %s can\'t be saved'));
}
}