Class

SessionData

Package: phpboost Author: Loic Rouchon <horn@phpboost.com> Desc: This class manages all sessions for the users. Located at phpboost/user/session/SessionData.class.php
Methods summary
protected
# __construct( mixed $user_id, mixed $session_id )
public
public
public
public
public
public
# get_ip( )
public
public
public
public
# has_cached_data( mixed $key )
public
# get_cached_data( mixed $key, mixed $default = null )
public
# add_cached_data( mixed $key, mixed $value )
public
# remove_cached_data( mixed $key )
public
public
# has_data( mixed $key )
public
# get_data( mixed $key )
public
# add_data( mixed $key, mixed $value )
public
# remove_data( mixed $key )
public
public
# save( )
public
# delete( )
public
public static
public static
# gc( )
public static SessionData
# create_visitor( )
public static SessionData
# create_from_user_id( integer $user_id )
public static
public static
# update_location( mixed $title_page )
public static
protected
# update_user_info( mixed $user_id )
public
# csrf_post_protect( )
public
# csrf_get_protect( )
Constants summary
string DEFAULT_VISITOR_DISPLAY_NAME 'visitor'
#
Properties summary
protected mixed $user_id
#
protected mixed $session_id
#
protected mixed $token
#
protected mixed $timestamp
#
protected mixed $ip
#
protected mixed $location_script
#
protected mixed $location_title
#
protected array $cached_data array()
#
protected array $data array()
#
protected boolean $cached_data_modified false
#
protected boolean $data_modified false
#