Implements user security and manages user id and profile. Also controls the UserAccountWindow
which allows a user to edit their profile and the LogoffWindow which allows
a user to logoff properly.
Security
- Retrieves user id from PHP session var set on login
- Loads user profile from database
- (If logoffError was true NetworkManager will recover last autosave)
- Sets logoffError to true.
- Starts timer which checks for user activity
- After period of 1 hr without user activity, automatically logs off user
- If a user exists using the LogoffWindow set logoffError to false
public var autosaveid:uint
public var email:String
This property can be used as the source for data binding.
public var firstname:String
This property can be used as the source for data binding.
public var id:uint
This property can be used as the source for data binding.
public var lastname:String
This property can be used as the source for data binding.
public var logofferror:Boolean
public var logoffWindow:LogoffWindow
public var openid:String
This property can be used as the source for data binding.
public var organization:String
This property can be used as the source for data binding.
public var pi:String
This property can be used as the source for data binding.
timedOut:Boolean [read-write]Implementation
public function get timedOut():Boolean
public function set timedOut(value:Boolean):void
public var userAccountWindow:UserAccountWindow
public function UserManager(application:Application, db:IDatabase)Parameters
public function logoffUser(event:Event, logoffError:Boolean = true):void logoff
Parameters
| event:Event |
| |
| logoffError:Boolean (default = true) |
public function saveUser():void save user profile to database
public function setLastUserActivity(event:Event = null):void time since last user activity
Parameters
| event:Event (default = null) |
public static const TIMEOUT_TIME:uint = 3600000