web\Session init()

init() public method Initializes the application component. This method is required by IApplicationComponent and is invoked by application. public void init ( )

web\Session hasFlash()

hasFlash() public method Returns a value indicating whether there are flash messages associated with the specified key. public boolean hasFlash ( $key )$key string Key identifying the flash message type return boolean Whether any flash messages exist under specified key

web\Session has()

has() public method public boolean has ( $key )$key mixed Session variable name return boolean Whether there is the named session variable

web\Session getUseTransparentSessionID()

getUseTransparentSessionID() public method public boolean getUseTransparentSessionID ( )return boolean Whether transparent sid support is enabled or not, defaults to false.

web\Session getUseCustomStorage()

getUseCustomStorage() public method Returns a value indicating whether to use custom session storage. This method should be overridden to return true by child classes that implement custom session storage. To implement custom session storage, override these methods: openSession(), closeSession(), readSession(), writeSession(), destroySession() and gcSession(). public boolean getUseCustomStorage ( )return boolean Whether to use custom storage.

web\Session getUseCookies()

getUseCookies() public method Returns the value indicating whether cookies should be used to store session IDs. See also setUseCookies(). public boolean|null getUseCookies ( )return boolean|null The value indicating whether cookies should be used to store session IDs.

web\Session getTimeout()

getTimeout() public method public integer getTimeout ( )return integer The number of seconds after which data will be seen as 'garbage' and cleaned up. The default value is 1440 seconds (or the value of "session.gc_maxlifetime" set in php.ini).

web\Session getSavePath()

getSavePath() public method Gets the current session save path. This is a wrapper for PHP session_save_path(). public string getSavePath ( )return string The current session save path, defaults to '/tmp'.

web\Session getName()

getName() public method Gets the name of the current session. This is a wrapper for PHP session_name(). public string getName ( )return string The current session name

web\Session getIterator()

getIterator() public method Returns an iterator for traversing the session variables. This method is required by the interface IteratorAggregate. public yii\web\SessionIterator getIterator ( )return yii\web\SessionIterator An iterator for traversing the session variables.