web\SessionIterator valid()

valid() public method Returns whether there is an element at current position. This method is required by the interface Iterator. public boolean valid ( )

web\SessionIterator __construct()

__construct() public method Constructor. public void __construct ( )

web\SessionIterator current()

current() public method Returns the current array element. This method is required by the interface Iterator. public mixed current ( )return mixed The current array element

web\Session updateFlashCounters()

updateFlashCounters() protected method Updates the counters for flash messages and removes outdated flash messages. This method should only be called once in init(). protected void updateFlashCounters ( )

web\SessionIterator key()

key() public method Returns the key of the current array element. This method is required by the interface Iterator. public mixed key ( )return mixed The key of the current array element

web\Session writeSession()

writeSession() public method Session write handler. This method should be overridden if $useCustomStorage returns true. Do not call this method directly. public boolean writeSession ( $id, $data )$id string Session ID $data string Session data return boolean Whether session write is successful

web\Session setUseCookies()

setUseCookies() public method Sets the value indicating whether cookies should be used to store session IDs. Three states are possible: true: cookies and only cookies will be used to store session IDs. false: cookies will not be used to store session IDs. null: if possible, cookies will be used to store session IDs; if not, other mechanisms will be used (e.g. GET parameter) public void setUseCookies ( $value )$value boolean|null The value indicating whether cookies should be used to st

web\Session setUseTransparentSessionID()

setUseTransparentSessionID() public method public void setUseTransparentSessionID ( $value )$value boolean Whether transparent sid support is enabled or not.

web\Session setTimeout()

setTimeout() public method public void setTimeout ( $value )$value integer The number of seconds after which data will be seen as 'garbage' and cleaned up

web\Session setSavePath()

setSavePath() public method Sets the current session save path. This is a wrapper for PHP session_save_path(). public void setSavePath ( $value )$value string The current session save path. This can be either a directory name or a path alias. throws yii\base\InvalidParamException if the path is not a valid directory