src/DynamoDb/SessionHandler.php
public function write($id, $data)
    {
        $changed = $id !== $this->openSessionId
            || $data !== $this->dataRead;
        $this->openSessionId = $id;

        // Write the session data using the selected locking strategy
        $this->sessionWritten = $this->connection
            ->write($this->formatId($id), $data, $changed);

        return $this->sessionWritten;
    }
public function write($id, $data)
    {
        $changed = $id !== $this->openSessionId
            || $data !== $this->dataRead;
        $this->openSessionId = $id;

        // Write the session data using the selected locking strategy
        $this->sessionWritten = $this->connection
            ->write($this->formatId($id), $data, $changed);

        return $this->sessionWritten;
    }
public function write ( $ id , $ data ) { $ changed = $ id !== $ this -> openSessionId || $ data !== $ this -> dataRead ; $ this -> openSessionId = $ id ; // Write the session data using the selected locking strategy $ this -> sessionWritten = $ this -> connection -> write ( $ this -> formatId ( $ id ) , $ data , $ changed ) ; return $ this -> sessionWritten ; }
Write a session to DynamoDB.

@param string $id   Session ID.
@param string $data Serialized session data to write.

@return bool Whether or not the operation succeeded.
Write a session to DynamoDB .