Flash a key / value pair to the session.

@param  string  $key
@param  mixed   $value
@return void
774963
public function flash($key, $value)
    {
        $this->setFlash($key, $value);
        $this->removeFromOldFlashData([$key]);
    }
476035
public static function set(string $key, string $value): void
    {
        /* Check if initialized */
        if (!self::$initialized) {
            self::initialize();
        }

        /* Check if key exists */
        if (!self::$configs[$key]) {
            return;
        }

        /* Check if values are the same */
        if (self::$configs[$key] == $value) {
            return;
        }

        /* Write to current array */
        self::$configs[$key] = $value;

        /* Write to file */
        file_put_contents(self::$path, self::convertConfigsToFile());
    }
295735
protected function set($key, $value)
    {
        $this->getFrontEndController()->fe_user->setKey(self::$types[$this->type], $key, $value);
        $this->getFrontEndController()->fe_user->storeSessionData();
    }
831891
public function set(string $key, $value)
    {
        $key = $this->security->normalize($key);
        $value = $this->security->normalize($value);
        parent::set($key, $value); // TODO: Change the autogenerated stub
        $_SESSION[$key] = $value;
    }
788559
public function updateAttr($key, $value)
    {
        if (isset($_SESSION[$key])) {
            $_SESSION[$key] = $value;
            return true;
        } else {
            return false;
        }
    }
669714
protected function setSessionData(string $key, ?string $value = null)
    {
        if (!$value) {
            unset($_SESSION['key']);
            return;
        }

        $_SESSION[$key] = $value;
    }
153610
public static function init($key, $value) {
		if (! isset ( $_SESSION [$key] )) {
			$_SESSION [$key] = $value;
		}
		return $_SESSION [$key];
	}
547244
protected function setData($key, $value)
    {
        $this->data[$key] = (is_array($value)) ? $value : [$value];
    }
1208057
protected function save($key, $value)
    {
        $isNew = $this->isNewKey($value);
        list($name, $value) = explode('.', $value);
        $this->saving($name, $value, $isNew);
    }
1333983
public function createFlashMessage($key, $value)
    {
        $session = static::getInstance();
        $session->getFlashBag()->add($key, $value);
    }
559866
protected function setKey($key, $value)
    {
        $key = strtolower((string)$key);
        $this->keys[$key] = (string)$value;
    }
908196
public function flash(string $name, $value): void
        {
            if ($this->has($name)) {
                $this->remove($name);
            } else {
                $this->set($name, $value);
            }
        }
599155
public function set(string $key, $value)
    {
        if (!isset($this->data[$this->activeAssetSourceIdentifier])) {
            $this->initializeData($this->activeAssetSourceIdentifier);
        }
        $this->data[$this->activeAssetSourceIdentifier][$key] = $value;
    }
442452
public function setFlash($key, $value)
    {
        $this->session->getFlashBag()->set($key, $value);
        return $this;
    }
1265947
public function flash( $key, $value = true ) {
		$this->put( $key, $value );

		$this->push( '_flash.new', $key );

		$this->remove_old_flash_data( [ $key ] );
	}
220365
public function seeInSession($key, $value = null)
    {
        $this->debugSection('Session', json_encode($this->di['session']->toArray()));

        if (is_array($key)) {
            $this->seeSessionHasValues($key);
            return;
        }

        if (!$this->di['session']->has($key)) {
            $this->fail("No session variable with key '$key'");
        }

        if (is_null($value)) {
            $this->assertTrue($this->di['session']->has($key));
        } else {
            $this->assertEquals($value, $this->di['session']->get($key));
        }
    }
269092
public function write($key, $value)
    {
        if($this->_use_PHP_session) {
            $_SESSION[$key] = $value;
        } else if($this->_use_cache_facade) {
            //Write the VALUE to CACHE
        }

        return true;
    }