public function write($user)
    {
        $this->_user = $user;

        $this->_session->renew();
        $this->_session->write($this->_config['key'], $user);
    }
public function write($user)
    {
        $this->_user = $user;

        $this->_session->renew();
        $this->_session->write($this->_config['key'], $user);
    }
public function write ( $ user ) { $ this -> _user = $ user ; $ this -> _session -> renew ( ) ; $ this -> _session -> write ( $ this -> _config [ 'key' ] , $ user ) ; }
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
Write user record to session .