src/SessionHandler.php
public function write($sessionId, $sessionData): bool
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        $content = $this->cryptProvider->encryptSessionData($sessionId, $sessionData);

        try {
            $this->storageDriver->save($identifier, $content);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function write($sessionId, $sessionData): bool
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        $content = $this->cryptProvider->encryptSessionData($sessionId, $sessionData);

        try {
            $this->storageDriver->save($identifier, $content);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function write ( $ sessionId , $ sessionData ) : bool { $ identifier = $ this -> cryptProvider -> makeSessionIdentifier ( $ sessionId ) ; $ content = $ this -> cryptProvider -> encryptSessionData ( $ sessionId , $ sessionData ) ; try { $ this -> storageDriver -> save ( $ identifier , $ content ) ; return true ; } catch ( Exception $ e ) { return false ; } }
Encrypts the session data and saves to the storage;

@param  string $sessionId   Id of the session
@param  string $sessionData Unencrypted session data
@return boolean
Encrypts the session data and saves to the storage ;