public function updateTimestamp($id, $data = null)
    {
        $self = $this;
        return $this->read($id)->then(
            function($dataStored) use ($self, $id, $data) {
                if (isset($data)) {
                    $dataStored = $data;
                }
                return $self->write($id, $dataStored);
            }
        )->then(
            function() { return true; }
        );
    }
public function updateTimestamp($id, $data = null)
    {
        $self = $this;
        return $this->read($id)->then(
            function($dataStored) use ($self, $id, $data) {
                if (isset($data)) {
                    $dataStored = $data;
                }
                return $self->write($id, $dataStored);
            }
        )->then(
            function() { return true; }
        );
    }
public function updateTimestamp ( $ id , $ data = null ) { $ self = $ this ; return $ this -> read ( $ id ) -> then ( function ( $ dataStored ) use ( $ self , $ id , $ data ) { if ( isset ( $ data ) ) { $ dataStored = $ data ; } return $ self -> write ( $ id , $ dataStored ) ; } ) -> then ( function ( ) { return true ; } ) ; }
Update timestamp of a session
@param string $id The session id
@param array  $data
The encoded session data. This data is the
result of the PHP internally encoding
the $_SESSION superglobal to a serialized
string and passing it as this parameter.
@return ExtendedPromiseInterface  with bool when finished
Update timestamp of a session