src/Session.php
public function write($id, $data) : bool
    {
        return (bool)$this->walk(
            'write',
            null,
            [$id, compact('data') + self::$session]
        );
    }
public function write($id, $data) : bool
    {
        return (bool)$this->walk(
            'write',
            null,
            [$id, compact('data') + self::$session]
        );
    }
public function write ( $ id , $ data ) : bool { return ( bool ) $ this -> walk ( 'write' , null , [ $ id , compact ( 'data' ) + self :: $ session ] ) ; }
Write the requested session.

@param string $id The session ID.
@param string $data The serialized session data as passed by PHP.
@return boolean True on success, else false.
Write the requested session .