Fully Qualified Name: | Laminas\Session\Config\SessionConfig |
Extends: | StandardConfig |
Session configuration proxying to session INI options
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 | SessionConfig |
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 |
setCacheLimiter() | Set cache limiter | SessionConfig |
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 | SessionConfig |
setHashFunction() | Set session.hash_function | SessionConfig |
setName() | Set session.name | StandardConfig |
setOption() | Override standard option setting. | SessionConfig |
setOptions() | Set many options at once | StandardConfig |
setPhpSaveHandler() | Set session.save_handler | SessionConfig |
setRememberMeSeconds() | Set remember_me_seconds | StandardConfig |
setSaveHandler() | Proxy to setPhpSaveHandler() | SessionConfig |
setSavePath() | Set session.save_path | SessionConfig |
setSerializeHandler() | Set session.serialize_handler | SessionConfig |
setSidBitsPerCharacter() | Set session.sid_bits_per_character | SessionConfig |
setSidLength() | Set session.sid_length | StandardConfig |
setStorageOption() | Set storage option in backend configuration store | SessionConfig |
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 cache limiter
Parameter Name | Type | Description |
---|---|---|
$cacheLimiter | ||
$cacheLimiter |
Returns: \SessionConfig
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: \SessionConfig
Set session.hash_function
Parameter Name | Type | Description |
---|---|---|
$hashFunction | string|int |
Returns: \SessionConfig
Set session.name
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \StandardConfig
Override standard option setting.
Provides an overload for setting the save handler.
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$option | ||
$value |
Returns:
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 session.save_handler
Parameter Name | Type | Description |
---|---|---|
$phpSaveHandler | string |
Returns: \SessionConfig
Set remember_me_seconds
Parameter Name | Type | Description |
---|---|---|
$rememberMeSeconds | int |
Returns: \StandardConfig
Proxy to setPhpSaveHandler()
Prevents calls to setSaveHandler()
from hitting setOption()
instead,
and thus bypassing the logic of setPhpSaveHandler()
.
Parameter Name | Type | Description |
---|---|---|
$phpSaveHandler | string |
Returns: \SessionConfig
Set session.save_path
Parameter Name | Type | Description |
---|---|---|
$savePath | string |
Returns: \SessionConfig
Set session.serialize_handler
Parameter Name | Type | Description |
---|---|---|
$serializeHandler | string |
Returns: \SessionConfig
Set session.sid_bits_per_character
Parameter Name | Type | Description |
---|---|---|
$sidBitsPerCharacter | int |
Returns: \SessionConfig
Set session.sid_length
Parameter Name | Type | Description |
---|---|---|
$sidLength | int |
Returns: \StandardConfig
Set storage option in backend configuration store
Parameter Name | Type | Description |
---|---|---|
$storageName | string | |
$storageValue | mixed |
Returns: \SessionConfig
Set session.use_cookies
Parameter Name | Type | Description |
---|---|---|
$useCookies | bool |
Returns: \StandardConfig
Cast configuration to an array
Returns: array