YANA 4 PHP Framework
Docs For Class SessionManager
«Singleton» SessionManager
This is a manager class to handle user data and permission levels.
Located in /includes/class_sessionmanager.php
Object | --Singleton | --SessionManager
creates a random password string of length 10
Returns bool(true) if the user is currently logged in and bool(false) otherwise.
Name | Type | Description |
---|---|---|
$userName | string | user name |
$userPwd | string | password |
This function is used to handle user logins.
It takes the following steps.
1) destroy any previous session (to prevent session fixation) 2) check user name and password
on success:
3.a) create new session id 4.a) return bool(true)
on error:
3.b) bool(false)
Destroy the current session and clear all session data.
Inherited From Singleton
Inherited From Object
Documentation generated on Sun, 11 Mar 2007 15:02:44 +0100 by phpDocumentor 1.3.1