セッションデータに値をセットする

@param   string  $key
@param   mixed   $value

@return  $this

@throws  Exception\SessionException
488216
public function set(string $key, $value){
        if($this->status() !== self::ACTIVE){
            throw Exception\SessionException::notStarted();
        }

        $_SESSION[$key] = $value;
    }
1098085
public function set($key, $value) {
        parent::set($key, $value);
        $_SESSION[$key] = $value;
    }
53528
public function save($key, $value)
    {
        $this->sessionBag->removeKey($key)->append($key, $value);
        $_SESSION[$key] = $value;

        return $this;
    }
1033281
public function setCookie($key, $value)
	{
		$this->cookies[$key] = $value;
		$this->updateCookieHeader();

		return $this;
	}
171030
public function set($key, $value)
    {
        DotArray::set($this->getStorage(), $key,$value);

        return $this;
    }
665163
public function setAttribute($key, $value)
    {
        if ($this->hasSetMutator($key)) {
            $method = sprintf($this->methodNameSetMutator, Str::studly($key));

            return $this->{$method}($value);
        }

        $this->attributes[$key] = $value;

        return $this;
    }
296896
public function set($key, $value)
    {
        $this->initSession();
        $key_name            = $this->getSessionKeyName($key);
        $_SESSION[$key_name] = $value;
    }
1142567
public function setFlash(string $key, $value): SessionInterface
    {
        $key = $this->flashKey($key);

        return $this->set($key, $value);
    }
1106261
public function set($key, $value = null)
    {
        if (!$this->offsetExists($key)) {
            $this->storage[$key] = $value;
        }

        return $this;
    }
153610
public static function init($key, $value) {
		if (! isset ( $_SESSION [$key] )) {
			$_SESSION [$key] = $value;
		}
		return $_SESSION [$key];
	}
471813
public function set($key, $value=null)
    {
        $this->start();
        
        $_SESSION[$key] = $value;
        
        //session_write_close();
        
        $sdata = is_scalar($key) ? [$key => $value] : $key;
        \Wslim\Ioc::logger('session')->debug(sprintf('[%s]set %s:%s', static::getId(), $key, print_r($value, true)));
        
        return $this;
    }
991550
public static function set(string $key, $value) : bool
    {
        $_SESSION[$key] = $value;

        return $_SESSION[$key] === $value;
    }
101715
public function addFlash($key, $value)
    {
        $this->session->getFlashBag()->add($key, $value);
        return $this;
    }
669714
protected function setSessionData(string $key, ?string $value = null)
    {
        if (!$value) {
            unset($_SESSION['key']);
            return;
        }

        $_SESSION[$key] = $value;
    }
131984
public function memorize($key, $value)
    {
        $this->startSession();

        if (is_callable($value)) {
            $value = call_user_func($value, $key);
        }

        $_SESSION[$this->session_key][$this->name][$key] = $value;

        return $value;
    }
1268867
public function with($key, $value)
    {
        $this->hasData = true;

        $this->session->create($key, $value);

        return $this;
    }
657560
public static function set_sticky($key, $value) {
		if (self::$sticky === null) {
			self::$sticky = new \Skeleton\Core\Web\Session\Sticky();
		}

		self::$sticky->$key = $value;
	}