Sets a session value
175263
def set_session_value(self, name, value):
        """"""

        self.redis().hset(self._session_key, name, value)
        self._update_session_expiration()
10644
function(key, value, delay){
            $ExpressSESSION.session.store[key] = value;
            if(delay && is_number(delay) && delay > 0){
                var vkey = self.id()+'_'+key;
                if($ExpressSESSION.session.expires[key]) clearTimeout(sesssion_expires[vkey]);
                sesssion_expires[vkey] = setTimeout(function(){
                    self.forget(key);
                    delete sesssion_expires[vkey];
                    delete $ExpressSESSION.session.expires[key];
                }, delay);
            }
        }
887141
public function setSessionItem(string $name, $value): void
    {
        $this->sessionItems->set($name, $value);
    }
915003
public void setProperty(String key, String value) {
        assertArgumentNotNull("key", key);
        assertArgumentNotNull("value", value);
        session.getProperties().setProperty(key, value);
    }
1321356
def set(self, key, value=None, dir=False, refresh=False, ttl=None,
            prev_value=None, prev_index=None, prev_exist=None, timeout=None):
        """"""
        url = self.make_key_url(key)
        data = self.build_args({
            'value': (six.text_type, value),
            'dir': (bool, dir or None),
            'refresh': (bool, refresh or None),
            'ttl': (int, ttl),
            'prevValue': (six.text_type, prev_value),
            'prevIndex': (int, prev_index),
            'prevExist': (bool, prev_exist),
        })
        try:
            res = self.session.put(url, data=data, timeout=timeout)
        except:
            self.erred()
        return self.wrap_response(res)
659750
public function set($key, $value) {
		assert('is_string($key)');

		$session = SimpleSAML_Session::getSessionFromRequest();
		$session->setData('openid.session', $key, $value);
	}
508267
def set_session(self, cookies):
        
        self.__session.cookies = requests.utils.cookiejar_from_dict(cookies)
131210
protected function setSessionConfig ()
    {
        // 1 WEEK FROM NOW
        $oneWeek        = time() + 60 * 60 * 24 * 7;
        $this->expire   = $this->expire     ?? $oneWeek;
        // '/path' or dir that is using cookies
        $this->path     = $this->path       ?? "/";
        // 'www.mysite.com';
        $this->domain   = $this->domain     ?? NULL;
        // isset($_SERVER['HTTPS']);
        $this->secure   = $this->secure     ?? NULL;
        // JavaScript can't access cookie
        $this->httponly = $this->httponly   ?? TRUE;
        session_set_cookie_params($this->expire, $this->path, $this->domain, $this->secure, $this->httponly);
    }
1180623
private function _set_session($attr){
    if ( $this->session->has(self::$sn) ){
      $args = \func_get_args();
      if ( (\count($args) === 2) && \is_string($args[0]) ){
        $attr = [$args[0] => $args[1]];
      }
      foreach ( $attr as $key => $val ){
        if ( \is_string($key) ){
          $this->session->set($val, self::$sn, $key);
        }
      }
    }
    return $this;
  }
168880
public static function set(string $key, $value)
    {
        // Start session if needed
        if (! session_id()) {
            self::start();
        }

        // Set key
        $_SESSION[(string) $key] = $value;
    }
400784
public function setConfigValue() {
    $this->requireTransaction();
    $session = $this->getSession();
    $request = $this->getRequest();
    $response = $this->getResponse();
    $persistenceFacade = $this->getPersistenceFacade();

    // load model
    $authUser = $this->principalFactory->getUser($session->getAuthUser());
    if ($authUser) {
      $configKey = $request->getValue('name');
      $configValue = $request->getValue('value');

      // find configuration
      $configObj = null;
      $configList = Node::filter($authUser->getValue('UserConfig'), null, null,
              ['name' => $configKey]);
      if (sizeof($configList) > 0) {
        $configObj = $configList[0];
      }
      else {
        $configObj = $persistenceFacade->create('UserConfig');
        $configObj->setValue('name', $configKey);
        $authUser->addNode($configObj);
      }

      // set value
      if ($configObj != null) {
        $configObj->setValue('value', $configValue);
      }
    }

    // success
    $response->setAction('ok');
  }
560145
public function setSessionData ()
	{
		
		$arr	= $this->toArray ();
		
		$arr['login_timestamp']	= $this->loginTimestamp;
		$arr['last_action']		= $this->lastAction;
		
		$this->session ()->set (get_called_class (), serialize ($arr));
		
	}
1146600
function (session) {
            this._session = session;
            if (this._smList) {
                var sz = this._smList.length;
                for (var i = 0; i < sz; i++) {
                    var subModule = this._smList[i];
                    if (subModule) {
                        subModule.setSession(session);
                    }
                }
            }
        }
747434
def _set(self, name, value):
        """
        if isinstance(value, MlabObjectProxy):
            mlabraw.eval(self._session, "%s = %s;" % (name, value._name))
        else:
##             mlabraw.put(self._session, name, self._as_mlabable_type(value))
            mlabraw.put(self._session, name, value)
1267946
public static function set($name, $value)
    {
        return (self::has($name) !== true) ? $_SESSION[$name] = $value : false;
    }
630712
public function setSession($session)
    {
        if (is_object($session)) {
            $this->session = $session;
        } elseif (is_string($session) || is_array($session)) {
            $this->session = new Session($session);
        }
    }
694649
protected void setSessionValue(final HttpServletRequest request, final String key,
      final Object value) {
    request.getSession(true).setAttribute(key, value);
  }