|
| __construct ($session_name=self::PARAMNAME, $sendCookie=true) |
|
| set ($id="") |
|
| setCookieSession ($id, $ttl=0) |
|
| close () |
|
| closeAll ($uid=null) |
|
| closeUsers ($uid=-1) |
|
| open ($uid=Account::ANONYMOUS_ID) |
|
| register ($k="", $v="") |
|
| read ($k="", $d="") |
|
| unregister ($k="") |
|
| getUKey ($prefix= '') |
|
| newId () |
|
| replaceGlobalParam ($paramName, $paramValue) |
|
| setTTL () |
|
| getSessionTTL ($default=0, $ttlParamName= '') |
|
| getSessionGcProbability ($default="0.01") |
|
| touch () |
|
| deleteUserExpiredSessions () |
|
| deleteGuestExpiredSessions () |
|
| deleteMaxAgedSessions () |
|
| gcSessions () |
|
| setuid ($uid) |
|
| sessionDirExistsAndIsWritable () |
|
| hasExpired () |
|
| removeSessionFile ($sessid=null) |
|
| deleteUserSessionsExcept ($userId= '', $exceptSessionId= '') |
|
| __construct ($dbaccess= '', $id= '', $res= '', $dbid=0) |
|
| Select ($id) |
|
| getValues () |
|
| affectColumn ($fields, $reset=true) |
|
| affect ($array, $more=false, $reset=true) |
|
| isAffected () |
|
| Complete () |
|
| preInsert () |
|
| postInsert () |
|
| preUpdate () |
|
| postUpdate () |
|
| preDelete () |
|
| postDelete () |
|
| preSelect ($id) |
|
| postSelect ($id) |
|
| Add ($nopost=false, $nopre=false) |
|
| modify ($nopost=false, $sfields="", $nopre=false) |
|
| delete ($nopost=false) |
|
| Adds (&$tcopy, $nopost=false) |
|
| lw ($prop) |
|
| CloseConnect () |
|
| Create ($nopost=false) |
|
| postInit () |
|
| init_dbid () |
|
| exec_query ($sql, $lvl=0, $prepare=false) |
|
| numrows () |
|
| fetch_array ($c, $type=PGSQL_ASSOC) |
|
| update () |
|
| setError ($moreerr= '') |
|
| autoUpdate () |
|
| savePoint ($point) |
|
| lockPoint ($exclusiveLock, $exclusiveLockPrefix= '') |
|
| setMasterLock ($useLock) |
|
| rollbackPoint ($point) |
|
| commitPoint ($point) |
|
Definition at line 17 of file Class.Session.php.
__construct |
( |
|
$session_name = self::PARAMNAME , |
|
|
|
$sendCookie = true |
|
) |
| |
deleteGuestExpiredSessions |
( |
| ) |
|
deleteMaxAgedSessions |
( |
| ) |
|
deleteUserExpiredSessions |
( |
| ) |
|
deleteUserSessionsExcept |
( |
|
$userId = '' , |
|
|
|
$exceptSessionId = '' |
|
) |
| |
Delete all user's sessions except the current session.
- Parameters
-
string | $userId | The user id (default is $this->userid) |
string | $exceptSessionId | The session id to keep (default is $this->id) |
- Returns
- string empty string on success, or the SQL error message
Definition at line 585 of file Class.Session.php.
getSessionGcProbability |
( |
|
$default = "0.01" | ) |
|
getSessionTTL |
( |
|
$default = 0 , |
|
|
|
$ttlParamName = '' |
|
) |
| |
Get, or generate, a "cache busting" key
- Parameters
-
- Returns
- string
Definition at line 349 of file Class.Session.php.
static getWebRootPath |
( |
|
$default = false | ) |
|
|
static |
Try to autodetect « web root path » (i.e. the URL path as seen from the user stand point to reach the root of the Dynacase context).
- Parameters
-
mixed | $default | The default value to return is all auto-detection fails. |
- Returns
- string|mixed Returns the « web root path » or the $default value if the path could not be detected with enough confidence
Definition at line 193 of file Class.Session.php.
static getWebRootPath_Apache |
( |
| ) |
|
|
staticprotected |
static getWebRootPath_CoreUrlIndex |
( |
| ) |
|
|
staticprotected |
read |
( |
|
$k = "" , |
|
|
|
$d = "" |
|
) |
| |
register |
( |
|
$k = "" , |
|
|
|
$v = "" |
|
) |
| |
removeSessionFile |
( |
|
$sessid = null | ) |
|
replaceGlobalParam |
( |
|
$paramName, |
|
|
|
$paramValue |
|
) |
| |
replace value of global parameter in session cache
- Parameters
-
string | $paramName | |
string | $paramValue | |
- Returns
- bool
Definition at line 395 of file Class.Session.php.
sessionDirExistsAndIsWritable |
( |
| ) |
|
setCookieSession |
( |
|
$id, |
|
|
|
$ttl = 0 |
|
) |
| |
Initial value:= array(
"id",
"userid",
"name",
"last_seen"
)
Definition at line 22 of file Class.Session.php.
$session_name = self::PARAMNAME |
Initial value:= "create table sessions ( id text,
userid int,
name text not null,
last_seen timestamp not null DEFAULT now() );
create unique index sessions_idx on sessions(id);
create index sessions_idx_userid on sessions(userid);"
Definition at line 40 of file Class.Session.php.
const PARAMNAME = 'dcpsession' |
const SESSION_CT_ARGS = 3 |
const SESSION_CT_CLOSE = 2 |
const SESSION_MIN_BYTE_LENGTH = 16 |
The documentation for this class was generated from the following file: