src/mako/gatekeeper/adapters/Session.php
protected function setRememberMeCookie(): void
	{
		if($this->options['cookie_options']['secure'] && !$this->request->isSecure())
		{
			throw new RuntimeException('Attempted to set a secure cookie over a non-secure connection.');
		}

		$this->response->getCookies()->addSigned($this->options['auth_key'], $this->user->getAccessToken(), (3600 * 24 * 365), $this->options['cookie_options']);
	}
protected function setRememberMeCookie(): void
	{
		if($this->options['cookie_options']['secure'] && !$this->request->isSecure())
		{
			throw new RuntimeException('Attempted to set a secure cookie over a non-secure connection.');
		}

		$this->response->getCookies()->addSigned($this->options['auth_key'], $this->user->getAccessToken(), (3600 * 24 * 365), $this->options['cookie_options']);
	}
protected function setRememberMeCookie ( ) : void { if ( $ this -> options [ 'cookie_options' ] [ 'secure' ] && ! $ this -> request -> isSecure ( ) ) { throw new RuntimeException ( 'Attempted to set a secure cookie over a non-secure connection.' ) ; } $ this -> response -> getCookies ( ) -> addSigned ( $ this -> options [ 'auth_key' ] , $ this -> user -> getAccessToken ( ) , ( 3600 * 24 * 365 ) , $ this -> options [ 'cookie_options' ] ) ; }
Sets a remember me cookie.

@throws \RuntimeException
Sets a remember me cookie .