Commit ae3be037 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith

Added unset method to $SESSION

parent 697b004a
......@@ -77,6 +77,16 @@ class Session {
$_SESSION[$key] = $value;
}
/**
* Clears the session property keyed by $key (by setting it to null).
*
* @param string $key The key to set.
*/
public function set($key) {
$this->ensure_session();
$_SESSION[$key] = null;
}
/**
* Adds a message that indicates something was successful
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment