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
Input
Input object- handler
SessionHandlerInterface
Session 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
string
Name of a variable- default
mixed
Default value of a variable if not set
Response
mixed
Value of a variable
has
Check whether data exists in the session store
has( name) :
since |
4.0.0 |
---|
Arguments
- name
string
Name of variable
Response
bool
True if the variable exists
remove
Unset a variable from the session store
remove( name) :
since |
4.0.0 |
---|
Arguments
- name
string
Name of variable
Response
mixed
The 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
string
Name of a variable.- value
mixed
Value of a variable.
Response
mixed
Old 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) :
see |
http://php.net/session.configuration |
---|---|
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
input
Input object
since |
4.0.0 |
---|
Type(s)
Input