Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
Seminar_Session Class Reference
Inheritance diagram for Seminar_Session:
Inheritance graph
Collaboration diagram for Seminar_Session:
Collaboration graph

Public Member Functions

 Seminar_Session ()
 gc ()
- Public Member Functions inherited from Session
 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 ()
 start ($sid="")
 Session ()
 start ()
 name ($name= '')
 put_id ()
 delete ()
 set_tokenname ()
 put_headers ()
 open ()
 close ()
 del ()
 freeze ($id=NULL, $sess_data=NULL)
 thaw ()
 set_container ()
 regenerate_session_id ($keep_session_vars=array())
 register ()
 is_registered ()
 unregister ()

Static Public Member Functions

 is_current_session_authenticated ()
 get_current_session_state ()
 get_session_vars ($sid)
 get_ticket ()
 check_ticket ($studipticket)

Data Fields

 $classname = "Seminar_Session"
 $cookiename = "Seminar_Session"
 $magic = "sdfghjdfdf"
 $mode = "cookie"
 $fallback_mode = "cookie"
 $lifetime = 0
 $that_class = "Seminar_CT_Sql"
 $gc_probability = 2
 $allowcache = "nocache"
 $cookie_secure = false
 $cookie_httponly = true
- Data Fields inherited from Session
 $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

check_ticket (   $studipticket)
static

checks the given string token against the one stored in the session

Parameters
string$studipticket
Returns
bool

Here is the caller graph for this function:

gc ( )

Reimplemented from Session.

Here is the call graph for this function:

get_current_session_state ( )
static

Returns the state of the current session. Does not start a session. possible return values: 'authenticated' - session is valid and user is authenticated 'nobody' - session is valid, but user is not authenticated false - no valid session

Returns
string|false

Here is the call graph for this function:

Here is the caller graph for this function:

get_session_vars (   $sid)
static

returns a SessionDecoder object containing the session variables for the given session id

Parameters
string$sida session id
Returns
SessionDecoder

Here is the call graph for this function:

Here is the caller graph for this function:

get_ticket ( )
static

returns a random string token for XSRF prevention the string is stored in the session

Returns
string

Here is the caller graph for this function:

is_current_session_authenticated ( )
static

Returns true, if the current session is valid and belongs to an authenticated user. Does not start a session.

Returns
bool

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$allowcache = "nocache"
$classname = "Seminar_Session"
$cookie_httponly = true
$cookie_secure = false
$cookiename = "Seminar_Session"
$fallback_mode = "cookie"
$gc_probability = 2
$lifetime = 0
$magic = "sdfghjdfdf"
$mode = "cookie"
$that_class = "Seminar_CT_Sql"

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