Fully Qualified Name: | Zend\Session\Config\StandardConfig |
Implements: | ConfigInterface |
Standard session configuration
Name | Description | Defined By |
---|---|---|
__call() | Intercept get*() and set*() methods | StandardConfig |
getCacheExpire() | Get session.cache_expire | StandardConfig |
getCookieDomain() | Get session.cookie_domain | StandardConfig |
getCookieHttpOnly() | Get session.cookie_httponly | StandardConfig |
getCookieLifetime() | Get session.cookie_lifetime | StandardConfig |
getCookiePath() | Get session.cookie_path | StandardConfig |
getCookieSecure() | Get session.cookie_secure | StandardConfig |
getEntropyFile() | Get session.entropy_file | StandardConfig |
getEntropyLength() | Get session.entropy_length | StandardConfig |
getGcDivisor() | Get session.gc_divisor | StandardConfig |
getGcMaxlifetime() | Get session.gc_maxlifetime | StandardConfig |
getGcProbability() | Get session.gc_probability | StandardConfig |
getHashBitsPerCharacter() | Get session.hash_bits_per_character | StandardConfig |
getHashFunction() | Get session.hash_function | StandardConfig |
getName() | Get session.name | StandardConfig |
getOption() | Get an individual option | StandardConfig |
getOptions() | Get all options set | StandardConfig |
getRememberMeSeconds() | Get remember_me_seconds | StandardConfig |
getSavePath() | Set session.save_path | StandardConfig |
getSidBitsPerCharacter() | Get session.sid_bits_per_character | StandardConfig |
getSidLength() | Get session.sid_length | StandardConfig |
getStorageOption() | Retrieve a storage option from a backend configuration store | StandardConfig |
getUseCookies() | Get session.use_cookies | StandardConfig |
hasOption() | Check to see if an internal option has been set for the key provided. | StandardConfig |
setCacheExpire() | Set session.cache_expire | StandardConfig |
setCookieDomain() | Set session.cookie_domain | StandardConfig |
setCookieHttpOnly() | Set session.cookie_httponly | StandardConfig |
setCookieLifetime() | Set session.cookie_lifetime | StandardConfig |
setCookiePath() | Set session.cookie_path | StandardConfig |
setCookieSecure() | Set session.cookie_secure | StandardConfig |
setEntropyFile() | Set session.entropy_file | StandardConfig |
setEntropyLength() | set session.entropy_length | StandardConfig |
setGcDivisor() | Set session.gc_divisor | StandardConfig |
setGcMaxlifetime() | Set gc_maxlifetime | StandardConfig |
setGcProbability() | Set session.gc_probability | StandardConfig |
setHashBitsPerCharacter() | Set session.hash_bits_per_character | StandardConfig |
setHashFunction() | Set session.hash_function | StandardConfig |
setName() | Set session.name | StandardConfig |
setOption() | Set an individual option | StandardConfig |
setOptions() | Set many options at once | StandardConfig |
setRememberMeSeconds() | Set remember_me_seconds | StandardConfig |
setSavePath() | Set session.save_path | StandardConfig |
setSidBitsPerCharacter() | Set session.sid_bits_per_character | StandardConfig |
setSidLength() | Set session.sid_length | StandardConfig |
setStorageOption() | Set storage option in backend configuration store | StandardConfig |
setUseCookies() | Set session.use_cookies | StandardConfig |
toArray() | Cast configuration to an array | StandardConfig |
Intercept get*() and set*() methods
Intercepts getters and setters and passes them to getOption() and setOption(), respectively.
Parameter Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Returns: mixed
Get session.cache_expire
Returns: string
Get session.cookie_domain
Returns: string
Get session.cookie_httponly
Returns: bool
Get session.cookie_lifetime
Returns: int
Get session.cookie_path
Returns: string
Get session.cookie_secure
Returns: bool
Get session.entropy_file
Returns: string
Get session.entropy_length
Returns: string
Get session.gc_divisor
Returns: int
Get session.gc_maxlifetime
Returns: int
Get session.gc_probability
Returns: int
Get session.hash_bits_per_character
Returns: string
Get session.hash_function
Returns: string
Get session.name
Returns: null|string
Get an individual option
Keys are normalized to lowercase. If the option is not found, attempts to retrieve it via {@link getStorageOption()}; if a value is returned from that method, it will be set as the internal value and returned.
Returns null for unfound options
Parameter Name | Type | Description |
---|---|---|
$option | string |
Returns: mixed
Get all options set
Returns: array
Get remember_me_seconds
Returns: int
Set session.save_path
Returns: string|null
Get session.sid_bits_per_character
Returns: string
Get session.sid_length
Returns: string
Retrieve a storage option from a backend configuration store
Used to retrieve default values from a backend configuration store.
Parameter Name | Type | Description |
---|---|---|
$storageOption | string |
Returns: mixed
Get session.use_cookies
Returns: bool
Check to see if an internal option has been set for the key provided.
Parameter Name | Type | Description |
---|---|---|
$option | string |
Returns: bool
Set session.cache_expire
Parameter Name | Type | Description |
---|---|---|
$cacheExpire | int |
Returns: \StandardConfig
Set session.cookie_domain
Parameter Name | Type | Description |
---|---|---|
$cookieDomain | string |
Returns: \StandardConfig
Set session.cookie_httponly
case sensitive method lookups in setOptions means this method has an unusual casing
Parameter Name | Type | Description |
---|---|---|
$cookieHttpOnly | bool |
Returns: \StandardConfig
Set session.cookie_lifetime
Parameter Name | Type | Description |
---|---|---|
$cookieLifetime | int |
Returns: \StandardConfig
Set session.cookie_path
Parameter Name | Type | Description |
---|---|---|
$cookiePath | string |
Returns: \StandardConfig
Set session.cookie_secure
Parameter Name | Type | Description |
---|---|---|
$cookieSecure | bool |
Returns: \StandardConfig
Set session.entropy_file
Parameter Name | Type | Description |
---|---|---|
$entropyFile | string |
Returns: \StandardConfig
set session.entropy_length
Parameter Name | Type | Description |
---|---|---|
$entropyLength | int |
Returns: \StandardConfig
Set session.gc_divisor
Parameter Name | Type | Description |
---|---|---|
$gcDivisor | int |
Returns: \StandardConfig
Set gc_maxlifetime
Parameter Name | Type | Description |
---|---|---|
$gcMaxlifetime | int |
Returns: \StandardConfig
Set session.gc_probability
Parameter Name | Type | Description |
---|---|---|
$gcProbability | int |
Returns: \StandardConfig
Set session.hash_bits_per_character
Parameter Name | Type | Description |
---|---|---|
$hashBitsPerCharacter | int |
Returns: \StandardConfig
Set session.hash_function
Parameter Name | Type | Description |
---|---|---|
$hashFunction | string |
Returns: mixed
Set session.name
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \StandardConfig
Set an individual option
Keys are normalized to lowercase. After setting internally, calls {@link setStorageOption()} to allow further processing.
Parameter Name | Type | Description |
---|---|---|
$option | string | |
$value | mixed |
Returns: \StandardConfig
Set many options at once
If a setter method exists for the key, that method will be called; otherwise, a standard option will be set with the value provided via {@link setOption()}.
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: \StandardConfig
Set remember_me_seconds
Parameter Name | Type | Description |
---|---|---|
$rememberMeSeconds | int |
Returns: \StandardConfig
Set session.save_path
Parameter Name | Type | Description |
---|---|---|
$savePath | string |
Returns: \StandardConfig
Set session.sid_bits_per_character
Parameter Name | Type | Description |
---|---|---|
$sidBitsPerCharacter | int |
Returns: \StandardConfig
Set session.sid_length
Parameter Name | Type | Description |
---|---|---|
$sidLength | int |
Returns: \StandardConfig
Set storage option in backend configuration store
Does nothing in this implementation; others might use it to set things such as INI settings.
Parameter Name | Type | Description |
---|---|---|
$storageName | string | |
$storageValue | mixed |
Returns: \StandardConfig
Set session.use_cookies
Parameter Name | Type | Description |
---|---|---|
$useCookies | bool |
Returns: \StandardConfig
Cast configuration to an array
Returns: array