Example #1
0
/**
 * 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.
 */
Session::name($name = null);
/**
 * Clears the session by calling session_unset()
 */
Session::clear();
/**
 * Discards the session array and finishes the session
 */
Session::abort();
/**
 * Resets the session with the values that are in the session store, the current session data is discarded
 */