AppserverIo\Appserver\ServletEngine\Session\AbstractSessionHandler::unmarshall PHP Méthode

unmarshall() protected méthode

Initializes the session instance from the passed JSON string. If the encoded data contains objects, they will be unserialized before reattached to the session instance.
protected unmarshall ( string $marshalled ) : AppserverIo\Psr\Servlet\ServletSessionInterface
$marshalled string The marshaled session representation
Résultat AppserverIo\Psr\Servlet\ServletSessionInterface The un-marshaled servlet session instance
    protected function unmarshall($marshalled)
    {
        // create a new and empty servlet session instance
        $servletSession = Session::emptyInstance();
        // unmarshall the session data
        $this->getSessionMarshaller()->unmarshall($servletSession, $marshalled);
        // returns the initialized servlet session instance
        return $servletSession;
    }