SessionData
This class manages all sessions for the users.
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
protected
|
|
public
|
#
csrf_post_protect( )
Check the session against CSRF attacks by POST. Checks that POSTs are done with the token of the current session. If the token of the request doesn't match the token of the current session, this method will consider that it's a CSRF attack. |
public
|
#
csrf_get_protect( )
Check the session against CSRF attacks by GET. Checks that GETs are done with the token of the current session. If the token of the request doesn't match the token of the current session, this method will consider that it's a CSRF attack. |
string |
DEFAULT_VISITOR_DISPLAY_NAME
|
#
'visitor'
|
protected
|
$user_id
|
|
protected
|
$session_id
|
|
protected
|
$token
|
|
protected
|
$timestamp
|
|
protected
|
$ip
|
|
protected
|
$location_script
|
|
protected
|
$location_title
|
|
protected
|
$location_id
|
|
protected
array
|
$cached_data
|
#
array()
|
protected
array
|
$data
|
#
array()
|
protected
boolean
|
$cached_data_modified
|
#
false
|
protected
boolean
|
$data_modified
|
#
false
|