| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 298 lignes (8 kb) |
| Inclus ou requis: | 1 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
SessionHandler:: (13 méthodes):
SessionHandler()
factory()
singleton()
open()
close()
read()
write()
destroy()
gc()
_isAuthenticated()
getSessionIDs()
countAuthenticatedUsers()
listAuthenticatedUsers()
Classe: SessionHandler - X-Ref
SessionHandler:: defines an API for implementing custom session| SessionHandler($params = array() X-Ref |
| Constructs a new SessionHandler object. param: array $params A hash containing connection parameters. |
| factory($driver, $params = null) X-Ref |
| Attempts to return a concrete SessionHandler instance based on $driver. param: string $driver The type of concrete SessionHandler subclass to param: array $params A hash containing any additional configuration or return: mixed The newly created concrete SessionHandler instance, or |
| singleton($driver, $params = null) X-Ref |
| Attempts to return a reference to a concrete SessionHandler instance based on $driver. It will only create a new instance if no SessionHandler instance with the same parameters currently exists. This method must be invoked as: $var = &SessionHandler::singleton() param: string $driver See SessionHandler::factory(). param: array $params See SessionHandler::factory(). return: mixed The created concrete SessionHandler instance, or false |
| open($save_path, $session_name) X-Ref |
| Open the SessionHandler backend. param: string $save_path The path to the session object. param: string $session_name The name of the session. return: boolean True on success, false otherwise. |
| close() X-Ref |
| Close the SessionHandler backend. return: boolean True on success, false otherwise. |
| read($id) X-Ref |
| Read the data for a particular session identifier from the SessionHandler backend. param: string $id The session identifier. return: string The session data. |
| write($id, $session_data) X-Ref |
| Write session data to the SessionHandler backend. param: string $id The session identifier. param: string $session_data The session data. return: boolean True on success, false otherwise. |
| destroy($id) X-Ref |
| Destroy the data for a particular session identifier in the SessionHandler backend. param: string $id The session identifier. return: boolean True on success, false otherwise. |
| gc($maxlifetime = 300) X-Ref |
| Garbage collect stale sessions from the SessionHandler backend. param: integer $maxlifetime The maximum age of a session. return: boolean True on success, false otherwise. |
| _isAuthenticated($session_data, $return_data = false) X-Ref |
| Determines if a session belongs to an authenticated user. param: string $session_data The session data itself. param: boolean $return_user If true, return the user session data. return: boolean|string True or the user's session data if the session |
| getSessionIDs() X-Ref |
| Get a list of the valid session identifiers. return: array A list of valid session identifiers. |
| countAuthenticatedUsers() X-Ref |
| Determine the number of currently logged in users. return: integer A count of logged in users. |
| listAuthenticatedUsers($date = false) X-Ref |
| Returns a list of currently logged in users. return: array A list of logged in users. |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |