web\Session gcSession()

gcSession() public method Session GC (garbage collection) handler. This method should be overridden if $useCustomStorage returns true. Do not call this method directly. public boolean gcSession ( $maxLifetime )$maxLifetime integer The number of seconds after which data will be seen as 'garbage' and cleaned up. return boolean Whether session is GCed successfully

web\Session destroy()

destroy() public method Frees all session variables and destroys all data registered to a session. public void destroy ( )

web\Session closeSession()

closeSession() public method Session close handler. This method should be overridden if $useCustomStorage returns true. Do not call this method directly. public boolean closeSession ( )return boolean Whether session is closed successfully

web\Session close()

close() public method Ends the current session and store session data. public void close ( )

web\Session count()

count() public method Returns the number of items in the session. This method is required by Countable interface. public integer count ( )return integer Number of items in the session.

web\Session $useTransparentSessionID

$useTransparentSessionID public property Whether transparent sid support is enabled or not, defaults to false. public boolean getUseTransparentSessionID ( )public void setUseTransparentSessionID ( $value )

web\Session $useCookies

$useCookies public property The value indicating whether cookies should be used to store session IDs. public boolean|null getUseCookies ( )public void setUseCookies ( $value )

web\Session $useCustomStorage

$useCustomStorage public read-only property Whether to use custom storage. public boolean getUseCustomStorage ( )

web\Session addFlash()

addFlash() public method Adds a flash message. If there are existing flash messages with the same key, the new one will be appended to the existing message array. See also: getFlash() setFlash() removeFlash() public void addFlash ( $key, $value = true, $removeAfterAccess = true )$key string The key identifying the flash message. $value mixed Flash message $removeAfterAccess boolean Whether the flash message should be automatically removed only if it is accessed. If false, the flash m

web\Session $name

$name public property The current session name public string getName ( )public void setName ( $value )