AppserverIo\Appserver\ServletEngine\Session\ApcSessionHandler::save PHP Метод

save() публичный Метод

Saves the passed session to the persistence layer.
public save ( AppserverIo\Psr\Servlet\ServletSessionInterface $session ) : void
$session AppserverIo\Psr\Servlet\ServletSessionInterface The session to save
Результат void
    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'));
        }
    }