[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 228 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 5 fois |
Nécessite: | 0 fichiers |
SessionManager:: (7 méthodes):
init()
setSessionCookiePath()
setSessionCookieDomain()
setSessionSavePath()
getSessionValue()
setSessionValue()
getUserInfoFromSession()
Classe: SessionManager - X-Ref
\ingroup Net_HTTPinit() X-Ref |
static method that takes care of initializing a session if there is none yet. It will also call setSessionSavePath() in order to tell PHP where sessions should be read and stored. return: nothing |
setSessionCookiePath() X-Ref |
return: nothing |
setSessionCookieDomain() X-Ref |
return: nothing |
setSessionSavePath() X-Ref |
Sets the folder where sessions should be saved, in case we'd like to save them somewhere else. This class will check the config parameter <b>session_save_path</b>: if it's not empty, it will use its value as the name of the folder where sessions should be saved, and it will also take care of creating the folder if it does not exist. If the folder exists but it cannot be read, it will throw an exception and quit (because this is a big issue) If the value of this parameter is empty, it will not do anything and use PHP's default settings for this. |
getSessionValue( $key ) X-Ref |
return the value of a parameter from the session param: key The name of the parameter return: The value assigned to this key |
setSessionValue( $key, $value ) X-Ref |
sets a value in the session param: key the key assigned to this vlaue param: value The value assigned return: always true |
getUserInfoFromSession() X-Ref |
Retrieve the UserInfo object from the session, if any return: A UserInfo object if found, or false otherwise |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |