Class Session
Session interface.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Session
Direct known subclasses
Core\Session\Driver\files
,
Core\Session\Driver\sqlite
,
Core\Session\Driver\storage
Namespace: Core
Package: Core\Session
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Session.inc.php
Methods summary
protected
|
|
public
|
|
abstract protected
|
|
protected
|
|
public
|
|
public
boolean
|
|
public static
|
|
public static
|
|
public
|
|
public static
string
|
|
public static
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
parameterID( )
Returns the session name and ID of the currently active session, if any. The session name is appended by an equal sign and the session ID. The string returned can be used as a GET parameter. |
public
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
string |
CookieDomainParameter
Defines the cookie domain for session cookies. |
#
'cookie-domain'
|
string |
CookieHTTPRestriction
Marks the cookie as accessible only through the HTTP protocol. Therefore scripts and other components may not access the session cookie. Depends on browser support. |
#
'cookie-http-restriction'
|
string |
CookieLifetimeParameter
Sets the lifetime for the session cookie. A value of 0 means the cookie is deleted once the browser window is closed. |
#
'cookie-lifetime'
|
string |
CookiePathParameter
Defines the cookie path for session cookies. |
#
'cookie-path'
|
string |
CookieSecurity
If enabled, cookies are only sent over secure connections. |
#
'cookie-security'
|
string |
CookieParameter
Sets the cookie mode. |
#
'cookie'
|
string |
RequireCookie
Cookie requirement cookie mode. Verifies that the session ID has been supplied via a cookie. |
#
'require'
|
string |
GcLifetimeParameter
Sets the maximum lifetime for session data entries in the garbage collector. |
#
'gc-lifetime'
|
string |
GcProbabilityParameter
Sets the percentage for garbage collector calls. |
#
'gc-probability'
|
string |
IPSecurityParameter
Controls, whether sessions are chained to the client IP address. If enabled, a session becomes invalid once the client IP address changes. |
#
'ip-security'
|
string |
LifetimeParameter
Sets the session lifetime in seconds. If a session has not been updated within the defined time frame, it becomes invalid. |
#
'lifetime'
|
string |
NameParameter
The name of the session. |
#
'name'
|
string |
RefererCheckParameter
Marks sessions invalid for which the client referrer does not contain this substring. |
#
'referer-check'
|
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_v_parameters
Associative key-value parameters array. |
|
protected static
|
$_activeSession
Reference to currently active session. |
Magic properties
public read-only
array
|
$parameters
Session configuration parameters. |