original_string: public function write($user)
      {
          $this->_user = $user;
  
          $this->_session->renew();
          $this->_session->write($this->_config['key'], $user);
      }
code: public function write($user)
      {
          $this->_user = $user;
  
          $this->_session->renew();
          $this->_session->write($this->_config['key'], $user);
      }
code_tokens: public function write ( $ user ) { $ this -> _user = $ user ; $ this -> _session -> renew ( ) ; $ this -> _session -> write ( $ this -> _config [ 'key' ] , $ user ) ; }
docstring: Write user record to session.
  
  The session id is also renewed to help mitigate issues with session replays.
  
  @param array|\ArrayAccess $user User record.
  @return void
docstring_tokens: Write user record to session .