Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Session Class Reference
+ Inheritance diagram for Session:
+ Collaboration diagram for Session:

Public Member Functions

 __construct ($session_name= 'freedom_param')
 
 Set ($id="")
 
 setCookieSession ($id, $ttl=0)
 
 Close ()
 
 CloseAll ()
 
 CloseUsers ($uid=-1)
 
 Open ($uid=ANONYMOUS_ID)
 
 Register ($k="", $v="")
 
 Read ($k="", $d="")
 
 Unregister ($k="")
 
 newId ()
 
 SetTTL ()
 
 getSessionTTL ($default=0, $ttlParamName= '')
 
 getSessionGcProbability ($default="0.01")
 
 touch ()
 
 deleteUserExpiredSessions ()
 
 deleteGuestExpiredSessions ()
 
 gcSessions ()
 
 setuid ($uid)
 
 sessionDirExistsAndIsWritable ()
 
 hasExpired ()
 
 removeSessionFile ($sessid=null)
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 AffectColumn ($fields)
 
 Affect ($array)
 
 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 ()
 
 savePoint ($point)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $fields
 
 $id_fields
 
 $dbtable = "sessions"
 
 $sqlcreate
 
 $isCacheble = false
 
 $sessiondb
 
 $session_name = 'freedom_param'
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

Definition at line 51 of file Class.Session.php.

Constructor & Destructor Documentation

__construct (   $session_name = 'freedom_param')

Definition at line 80 of file Class.Session.php.

Member Function Documentation

Close ( )

Closes session and removes all datas

Definition at line 150 of file Class.Session.php.

+ Here is the call graph for this function:

CloseAll ( )

Closes all session

Definition at line 169 of file Class.Session.php.

+ Here is the call graph for this function:

CloseUsers (   $uid = - 1)

Closes all user's sessions

Definition at line 178 of file Class.Session.php.

+ Here is the call graph for this function:

deleteGuestExpiredSessions ( )

Definition at line 324 of file Class.Session.php.

+ Here is the call graph for this function:

deleteUserExpiredSessions ( )

Definition at line 315 of file Class.Session.php.

+ Here is the call graph for this function:

gcSessions ( )

Definition at line 333 of file Class.Session.php.

+ Here is the call graph for this function:

getSessionGcProbability (   $default = "0.01")

Definition at line 303 of file Class.Session.php.

+ Here is the call graph for this function:

getSessionTTL (   $default = 0,
  $ttlParamName = '' 
)

Definition at line 291 of file Class.Session.php.

+ Here is the call graph for this function:

hasExpired ( )

Definition at line 389 of file Class.Session.php.

+ Here is the call graph for this function:

newId ( )

Definition at line 272 of file Class.Session.php.

Open (   $uid = ANONYMOUS_ID)

Definition at line 186 of file Class.Session.php.

+ Here is the call graph for this function:

Read (   $k = "",
  $d = "" 
)

Definition at line 235 of file Class.Session.php.

Register (   $k = "",
  $v = "" 
)

Definition at line 209 of file Class.Session.php.

removeSessionFile (   $sessid = null)

Definition at line 403 of file Class.Session.php.

sessionDirExistsAndIsWritable ( )

Definition at line 369 of file Class.Session.php.

Set (   $id = "")

Definition at line 87 of file Class.Session.php.

+ Here is the call graph for this function:

setCookieSession (   $id,
  $ttl = 0 
)

Definition at line 132 of file Class.Session.php.

SetTTL ( )

Definition at line 281 of file Class.Session.php.

+ Here is the call graph for this function:

setuid (   $uid)

Definition at line 353 of file Class.Session.php.

+ Here is the call graph for this function:

touch ( )

Definition at line 308 of file Class.Session.php.

+ Here is the call graph for this function:

Unregister (   $k = "")

Definition at line 256 of file Class.Session.php.

Field Documentation

$dbtable = "sessions"

Definition at line 65 of file Class.Session.php.

$fields
Initial value:
= array(
"id",
"userid",
"name",
"last_seen"
)

Definition at line 54 of file Class.Session.php.

$id_fields
Initial value:
= array(
"id"
)

Definition at line 61 of file Class.Session.php.

$isCacheble = false

Definition at line 75 of file Class.Session.php.

$session_name = 'freedom_param'

Definition at line 78 of file Class.Session.php.

$sessiondb

Definition at line 76 of file Class.Session.php.

$sqlcreate
Initial value:
= "create table sessions ( id varchar(100),
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_name on sessions(name);
create index sessions_idx_userid on sessions(userid);"

Definition at line 67 of file Class.Session.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase