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

Added is_logged_in() function

parent f5649864
......@@ -146,6 +146,15 @@ class Session {
);
}
/**
* Determines if the user is currently logged in
*
* @return boolean
*/
public function is_logged_in() {
return ($this->get('logout_time') > 0 ? true : false);
}
/**
* 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