JoomlaStorage
Extends NativeStorageService provider for the application's session dependency
| since |
4.0.0 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
Constructor
__construct(\Joomla\Input\Input input, \SessionHandlerInterface handler = null, mixed||string|int options = []) :
| since |
4.0.0 |
|---|
Arguments
- input
InputInput object- handler
SessionHandlerInterface|nullSession save handler- options
array<string|int, mixed>Session options
Response
mixed
all
Retrieves all variables from the session store
all() : mixed||string|int
| since |
4.0.0 |
|---|
Response
array<string|int, mixed>
clear
Clears all variables from the session store
clear() :
| since |
4.0.0 |
|---|
Response
void
close
Writes session data and ends session
close() :
| see | session_write_close() |
|---|---|
| since |
4.0.0 |
Response
void
get
Get data from the session store
get( name, default) :
| since |
4.0.0 |
|---|
Arguments
- name
stringName of a variable- default
mixedDefault value of a variable if not set
Response
mixedValue of a variable
has
Check whether data exists in the session store
has( name) :
| since |
4.0.0 |
|---|
Arguments
- name
stringName of variable
Response
boolTrue if the variable exists
remove
Unset a variable from the session store
remove( name) :
| since |
4.0.0 |
|---|
Arguments
- name
stringName of variable
Response
mixedThe value from session or NULL if not set
set
Set data into the session store
set( name, value = null) :
| since |
4.0.0 |
|---|
Arguments
- name
stringName of a variable.- value
mixedValue of a variable.
Response
mixedOld value of a variable.
setCookieParams
Set session cookie parameters
setCookieParams() :
| since |
4.0.0 |
|---|
Response
void
setOptions
Sets session options
setOptions(mixed||string|int options) :
| link | |
|---|---|
| since |
4.0.0 |
Arguments
- options
array<string|int, mixed>Session ini directives array(key => value).
Response
$this
start
Start a session
start() :
| since |
4.0.0 |
|---|
Response
void
Properties
data
Internal data store for the session data
| since |
4.0.0 |
|---|
Type(s)
Registry
forceSSL
Force cookies to be SSL only
| since |
4.0.0 |
|---|
Type(s)
bool
cookieDomain
The domain to set in the session cookie
| since |
5.0.0 |
|---|
Type(s)
string
cookiePath
The path to set in the session cookie
| since |
5.0.0 |
|---|
Type(s)
string
input
Input object
| since |
4.0.0 |
|---|
Type(s)
Input