Example #1
0
 * Returns the status of the session which is an INT that maps to these constants:
 * - PHP_SESSION_DISABLED if sessions are disabled.
 * - PHP_SESSION_NONE if sessions are enabled, but none exists.
 * - PHP_SESSION_ACTIVE if sessions are enabled, and one exists.
 */
Session::status();
/**
 * Gets or sets the type of cache HTTP Headers are sent to the client
 * More information: http://php.net/manual/en/function.session-cache-limiter.php
 * returns the the current cache limiter as a string
 */
Session::cacheLimiter($cacheLimiter = null);
/**
 * gets or sets the session save path, if you want to change the path where sessions are stored, this must be called BEFORE a session is started
 */
Session::savePath($path = null);
/**
 * Sets the $_SESSION[$key] variable to $value
 */
Session::set($key, $value);
/**
 * Returns $_SESSION[$key] if it exists, false if not.
 */
Session::get($key);
/**
 * does unset($_SESSION[$key]) if the key exists
 */
Session::delete($key);
/**
 * Sets the name of the session or returns the name of the current session if no params are passed.
 */