Class Session
Session.
- ICanBoogie\Session implements ICanBoogie\SessionOptions, ICanBoogie\SessionSegment uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\Session\SegmentTrait
Methods summary
protected
string
|
|
protected
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
|
|
protected
string
|
|
protected
|
|
protected
array
|
|
protected
|
|
protected
integer
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
&
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
protected
|
|
public
boolean
|
|
public
|
|
public
|
|
public
boolean
|
|
protected
string
|
|
public
boolean
|
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods used from ICanBoogie\Session\SegmentTrait
__get()
,
accessor_get()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Magic methods summary
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
boolean
|
#
regenerate_id( $delete_old_session = false )
Update the current session id with a newly generated one. |
public
|
Constants summary
string |
TOKEN_NAME
Name of the session token, may be used as form hidden input name. |
#
'__SESSION_TOKEN__'
|
Constants inherited from ICanBoogie\SessionOptions
DEFAULT_CACHE_EXPIRE
,
DEFAULT_CACHE_LIMITER
,
DEFAULT_ID
,
DEFAULT_MODULE_NAME
,
DEFAULT_NAME
,
DEFAULT_SAVE_PATH
,
OPTION_CACHE_EXPIRE
,
OPTION_CACHE_LIMITER
,
OPTION_COOKIE_PARAMS
,
OPTION_ID
,
OPTION_MODULE_NAME
,
OPTION_NAME
,
OPTION_SAVE_PATH
Properties summary
Magic properties
public
string
|
$id
Current session id. |
public
string
|
$name
Current session name. |
public
string
|
$cache_limiter
Current cache limiter. |
public
string
|
$cache_expire
Current cache expire. |
public
array
|
$cookie_params
Session cookie parameters. |
public
string
|
$module_name
Current session module. |
public
string
|
$save_path
Current session save path. |
public
|
$flash
The session flash. |
public read-only
integer
|
$status
Current session status. |
public read-only
boolean
|
$is_disabled
Whether sessions are enabled, but none exists. |
public read-only
boolean
|
$is_active
Whether sessions are enabled, and one exists. |
public read-only
boolean
|
$has_none
Whether sessions are enabled, but none exists. |
public read-only
boolean
|
$is_referenced
Whether session id is referenced in the cookie. |
public read-only
|
$segments
Session segments. |
public read-only
string
|
$token
Current session token that can be used to prevent CSRF. |