web\Session setName()

setName() public method Sets the name for the current session. This is a wrapper for PHP session_name(). public void setName ( $value )$value string The session name for the current session, must be an alphanumeric string. It defaults to "PHPSESSID".

web\Session setId()

setId() public method Sets the session ID. This is a wrapper for PHP session_id(). public void setId ( $value )$value string The session ID for the current session

web\Session setHasSessionId()

setHasSessionId() public method Sets the value indicating whether the current request has sent the session ID. This method is provided so that you can override the default way of determining whether the session ID is sent. public void setHasSessionId ( $value )$value boolean Whether the current request has sent the session ID.

web\Session setGCProbability()

setGCProbability() public method public void setGCProbability ( $value )$value float The probability (percentage) that the GC (garbage collection) process is started on every session initialization. throws yii\base\InvalidParamException if the value is not between 0 and 100.

web\Session setFlash()

setFlash() public method Sets a flash message. A flash message will be automatically deleted after it is accessed in a request and the deletion will happen in the next request. If there is already an existing flash message with the same key, it will be overwritten by the new one. See also: getFlash() addFlash() removeFlash() public void setFlash ( $key, $value = true, $removeAfterAccess = true )$key string The key identifying the flash message. Note that flash messages and normal session

web\Session setCookieParams()

setCookieParams() public method Sets the session cookie parameters. The cookie parameters passed to this method will be merged with the result of session_get_cookie_params(). See also http://us2.php.net/manual/en/function.session-set-cookie-params.php. public void setCookieParams ( array $value )$value array Cookie parameters, valid keys include: lifetime, path, domain, secure and httponly. throws yii\base\InvalidParamException if the parameters are incomplete.

web\Session set()

set() public method Adds a session variable. If the specified name already exists, the old value will be overwritten. public void set ( $key, $value )$key string Session variable name $value mixed Session variable value

web\Session removeFlash()

removeFlash() public method Removes a flash message. See also: getFlash() setFlash() addFlash() removeAllFlashes() public mixed removeFlash ( $key )$key string The key identifying the flash message. Note that flash messages and normal session variables share the same name space. If you have a normal session variable using the same name, it will be removed by this method. return mixed The removed flash message. Null if the flash message does not exist.

web\Session removeAllFlashes()

removeAllFlashes() public method Removes all flash messages. Note that flash messages and normal session variables share the same name space. If you have a normal session variable using the same name, it will be removed by this method. See also: getFlash() setFlash() addFlash() removeFlash() public void removeAllFlashes ( )

web\Session removeAll()

removeAll() public method Removes all session variables public void removeAll ( )