Session Cookie Secure ~
Enable this setting to use secure session cookies. This requires your site to be accessible over https, otherwise your site and/or manager will become inaccessible.

@param bool $value

@return $this
323938
public function setCoreSessionCookieSecure($value)
    {
        $this->setFieldName('session_cookie_secure');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
268338
public function setCoreFeedModxSecurity($value)
    {
        $this->setFieldName('feed_modx_security');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1074488
public function interlace(bool $value = true)
    {
        $this->check();

        imageinterlace($this->image_resource, $value);

        return $this;
    }
234108
public function decryptSecureCookie($value)
    {
        $cookieValues = explode('|', $value, 4);
        if ((count($cookieValues) === 4) && ($cookieValues[1] == 0 || $cookieValues[1] >= time())) {
            $userid = $cookieValues[0];
            $expire = $cookieValues[1];
            $encrValue = $cookieValues[2];

            $key = hash_hmac('sha1', $userid.$expire, $this->key);
            $value = $this->decrypt(base64_decode(str_replace(' ', '+', $encrValue)), md5($expire));

            if ($this->includeSSLKey == true && ($sslKey = $this->Request->getServerAttribute('SSL_SESSION_ID')))
                $verifyKey = hash_hmac('sha1', $userid . $expire . $value . $sslKey, $key);
            else
                $verifyKey = hash_hmac('sha1', $userid . $expire . $value, $key);

            if (strcmp($verifyKey, $cookieValues[3]) === 0)
                return $value;
        }
        return false;
    }
818143
protected function encrypt($value)
    {
        return $this->getCryptService()->encrypt(serialize($value), $this->getSecurity()->getPrivateKey());
    }
788687
public function withCookie($name, $value, $expire = 0, $path = '/', $domain = null, $secure = null, $httponly = true)
    {
        if (null === $secure) {
            $secure = isset($_SERVER['HTTPS']) ? (bool) $_SERVER['HTTPS'] : false;
        }

        $key = sprintf('%s@%s:%s', $name, $domain, $path);
        $this->cookies[$key] = [$name, $value, $expire, $path, $domain, $secure, $httponly];

        return $this;
    }
1357374
public function set($name, $value)
    {
        $name = $this->prefix . $name;
        return setcookie($name, $value, $this->expire, $this->path, $this->domain, $this->secure, $this->httpOnly);
    }
564592
public function setCookie($name, $value)
	{
		if(!preg_match("'^[a-z_0-9\-\.]+$'i", $name))
		{
			throw new \InvalidArgumentException(sprintf('Invalid cookie name: "%s"', $name));
		}
			
		$this->cookies[$name] = $value;
		
		return $this;
	}
1134304
protected function setCookie($name, $value = null, $expire = null, $domainPath = null, $https = null, $httpOnly = null)
    {
        return setcookie($name, $value, $expire, $domainPath, $https, $httpOnly);
    }
626434
public function readonly($value = true)
    {
        if (in_array($this->tag, ['form', 'input', 'textarea', 'select'])) {
            return parent::attr('readonly', $value ? 'readonly' : '');
        }

        return $this;
    }
710447
protected function _createCookie($value)
    {
        $data = $this->getConfig('cookie');

        $cookie = new Cookie(
            $data['name'],
            $value,
            $data['expire'],
            $data['path'],
            $data['domain'],
            $data['secure'],
            $data['httpOnly']
        );

        return $cookie;
    }
669218
public function setCoreAllowManagerLoginForgotPassword($value)
    {
        $this->setFieldName('allow_manager_login_forgot_password');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1061435
function setCookie($name, $value)
    {
        if (strlen($name) == 0) {
            return FALSE;
        }
        $this->cookies[] = ['name' => $name, 'value' => $value];

        return TRUE;
    }
1248621
public function setCoreEnableGravatar($value)
    {
        $this->setFieldName('enable_gravatar');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
662373
public function setCookie(
        $name = "",
        $value = "",
        $expire = 0,
        $path = "/",
        $domain = "",
        $secure = false,
        $httpOnly = false
    ) {
        Cookies::$plugin->cookies->set(
            $name,
            $value,
            $expire,
            $path,
            $domain,
            $secure,
            $httpOnly
        );
    }
997479
public function setCookie($name, $value = null, $expire = null, $path = '/', $domain = '', $secure = false, $httponly = false){
        if(!$this->isEndResponse()){
            $this->withAddedCookie([
                $name,$value,$expire,$path,$domain,$secure,$httponly
            ]);
            return true;
        }else{
            return false;
        }

    }
1216348
public function set($key, $value, $time = 86400, $path = '/', $domain = null, $secure = false, $httpOnly = true)
    {
        if ($domain === null) {
            $domain = $this->domain;
        }
        $key = $this->prefix . $key;
        if (!is_cli()) {
            setcookie($key, $value, time() + $time, $path, $domain, $secure, $httpOnly);
        }
        $_COOKIE[$key] = $value;

        return $this;
    }