Stud.IP  2.5 Revision
Session Class Reference
Inheritance diagram for Session:
Inheritance graph
Collaboration diagram for Session:
Collaboration graph

Public Member Functions

 register ($things)
 
 is_registered ($name)
 
 unregister ($things)
 
 get_id ($id="")
 
 put_id ()
 
 delete ()
 
 url ($url)
 
 purl ($url)
 
 self_url ()
 
 pself_url ()
 
 hidden_session ()
 
 add_query ($qarray)
 
 padd_query ($qarray)
 
 serialize ($prefix, $str)
 
 get_lock ()
 
 release_lock ()
 
 freeze ()
 
 thaw ()
 
 reimport_get_vars ()
 
 reimport_post_vars ()
 
 reimport_cookie_vars ()
 
 reimport_any_vars ($arrayname)
 
 set_container ()
 
 set_tokenname ()
 
 release_token ()
 
 put_headers ()
 
 gc ()
 
 start ($sid="")
 
 Session ()
 
 start ()
 
 name ($name='')
 
 put_id ()
 
 delete ()
 
 set_tokenname ()
 
 put_headers ()
 
 open ()
 
 close ()
 
 del ()
 
 freeze ($id=NULL, $sess_data=NULL)
 
 thaw ()
 
 gc ()
 
 set_container ()
 
 regenerate_session_id ($keep_session_vars=array())
 
 register ()
 
 is_registered ()
 
 unregister ()
 

Data Fields

 $classname = "Session"
 
 $magic = ""
 
 $mode = "cookie"
 
 $fallback_mode
 
 $lifetime = 0
 
 $cookie_domain = ""
 
 $cookie_path = "/"
 
 $gc_time = 1440
 
 $gc_probability = 1
 
 $auto_init = ""
 
 $secure_auto_init = 1
 
 $allowcache = "no"
 
 $allowcache_expire = 1440
 
 $that_class = ""
 
 $name = ""
 
 $id = ""
 
 $that
 
 $pt = array()
 
 $in = false
 
 $cookiename
 
 $trans_id_enabled = true
 
 $module = 'user'
 
 $save_path
 

Member Function Documentation

◆ add_query()

add_query (   $qarray)

◆ close()

close ( )

Close callback

◆ del()

del ( )

Delete callback

Here is the call graph for this function:

◆ delete() [1/2]

delete ( )

◆ delete() [2/2]

delete ( )

Delete the current session destroying all registered data.

Note that it does more but the PHP 4 session_destroy it also throws away a cookie is there's one.

Returns
boolean session_destroy return value public
Here is the call graph for this function:

◆ freeze() [1/2]

freeze ( )
Here is the call graph for this function:

◆ freeze() [2/2]

freeze (   $id = NULL,
  $sess_data = NULL 
)

◆ gc() [1/2]

gc ( )

gc callback.

Destroy all session data older than $this->gc_time

◆ gc() [2/2]

gc ( )
Here is the caller graph for this function:

◆ get_id()

get_id (   $id = "")
Here is the caller graph for this function:

◆ get_lock()

get_lock ( )
Here is the caller graph for this function:

◆ hidden_session()

hidden_session ( )

◆ is_registered() [1/2]

is_registered (   $name)

◆ is_registered() [2/2]

is_registered ( )

◆ name()

name (   $name = '')

Sets or returns the name of the current session

Parameters
stringIf given, sets the session name
Returns
string session_name() return value public
Here is the caller graph for this function:

◆ open()

open ( )

Open callback

abstract

◆ padd_query()

padd_query (   $qarray)

◆ pself_url()

pself_url ( )

◆ purl()

purl (   $url)

◆ put_headers() [1/2]

put_headers ( )

?

◆ put_headers() [2/2]

put_headers ( )
Here is the caller graph for this function:

◆ put_id() [1/2]

put_id ( )
Here is the caller graph for this function:

◆ put_id() [2/2]

put_id ( )

Delete the cookie holding the session id.

RFC: is this really needed? can we prune this function? the only reason to keep it is if one wants to also unset the cookie when session_destroy()ing,which PHP doesn't seem to do (looking @ the session.c:940) uw: yes we should keep it to remain the same interface, but deprec.

public $_COOKIE

◆ regenerate_session_id()

regenerate_session_id (   $keep_session_vars = array())
Here is the call graph for this function:

◆ register() [1/2]

register (   $things)

◆ register() [2/2]

register ( )

◆ reimport_any_vars()

reimport_any_vars (   $arrayname)
Here is the caller graph for this function:

◆ reimport_cookie_vars()

reimport_cookie_vars ( )
Here is the call graph for this function:

◆ reimport_get_vars()

reimport_get_vars ( )
Here is the call graph for this function:

◆ reimport_post_vars()

reimport_post_vars ( )
Here is the call graph for this function:

◆ release_lock()

release_lock ( )
Here is the caller graph for this function:

◆ release_token()

release_token ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ self_url()

self_url ( )

◆ serialize()

serialize (   $prefix,
  $str 
)
Here is the caller graph for this function:

◆ Session()

Session ( )

Sets the session name before the session starts.

Make sure that all derived classes call the constructor

See also
name()
Here is the call graph for this function:

◆ set_container() [1/2]

set_container ( )
Here is the caller graph for this function:

◆ set_container() [2/2]

set_container ( )

?

◆ set_tokenname() [1/2]

set_tokenname ( )

?

◆ set_tokenname() [2/2]

set_tokenname ( )
Here is the caller graph for this function:

◆ start() [1/2]

start ( )

Start a new session or recovers from an existing session

Returns
boolean session_start() return value public
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start() [2/2]

start (   $sid = "")
Here is the call graph for this function:

◆ thaw() [1/2]

thaw ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ thaw() [2/2]

thaw ( )

Read callback.

◆ unregister() [1/2]

unregister (   $things)

◆ unregister() [2/2]

unregister ( )

◆ url()

url (   $url)

Field Documentation

◆ $allowcache

$allowcache = "no"

◆ $allowcache_expire

$allowcache_expire = 1440

◆ $auto_init

$auto_init = ""

◆ $classname

$classname = "Session"

Session name

◆ $cookie_domain

$cookie_domain = ""

◆ $cookie_path

$cookie_path = "/"

◆ $cookiename

$cookiename

◆ $fallback_mode

$fallback_mode

◆ $gc_probability

$gc_probability = 1

◆ $gc_time

$gc_time = 1440

◆ $id

$id = ""

◆ $in

$in = false

◆ $lifetime

$lifetime = 0

◆ $magic

$magic = ""

◆ $mode

$mode = "cookie"

◆ $module

$module = 'user'

◆ $name

$name = ""

◆ $pt

$pt = array()

◆ $save_path

$save_path

◆ $secure_auto_init

$secure_auto_init = 1

◆ $that

$that

◆ $that_class

$that_class = ""

Name of data storage container

var string

◆ $trans_id_enabled

$trans_id_enabled = true

The documentation for this class was generated from the following files: