Example #1
0
 * 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
 */
Session::reset();
/**
 * Closes the session and (if chosen) writes session data to the session save path.
 */
Session::close($save = true);
/**
 * Returns the serialized session data, example: username|s:11:"helgesverre";password|s:11:"password123";
 */
Session::encode();
/**
 * Takes serialized session data and populates the $_SESSION variable with them.
 */
Session::decode($data);
/**
 * Get and/or set the current session id
 */
Session::id($id = null);