Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JSessionStorage
+ Graphe d'héritage de JSessionStorage:

Fonctions membres publiques

 __construct ($options=array())
 
 register ()
 
 open ($savePath, $sessionName)
 
 close ()
 
 read ($id)
 
 write ($id, $sessionData)
 
 destroy ($id)
 
 gc ($maxlifetime=null)
 

Fonctions membres publiques statiques

static isSupported ()
 
static test ()
 

Attributs protégés statiques

static $instances = array()
 

Description détaillée

Custom session storage handler for PHP

1.7.0 deprecated 472.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options = array())

Constructor

Paramètres
array$optionsOptional parameters.
Depuis
1.7.0

Références $options.

Documentation des fonctions membres

◆ close()

close ( )

Close the SessionHandler backend.

Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0

◆ destroy()

destroy (   $id)

Destroy the data for a particular session identifier in the SessionHandler backend.

Paramètres
string$idThe session identifier.
Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0

◆ gc()

gc (   $maxlifetime = null)

Garbage collect stale sessions from the SessionHandler backend.

Paramètres
integer$maxlifetimeThe maximum age of a session.
Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0

◆ isSupported()

static isSupported ( )
static

Test to see if the SessionHandler is available.

Renvoie
boolean True on success, false otherwise.
Depuis
3.0.0

◆ open()

open (   $savePath,
  $sessionName 
)

Open the SessionHandler backend.

Paramètres
string$savePathThe path to the session object.
string$sessionNameThe name of the session.
Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0

◆ read()

read (   $id)

Read the data for a particular session identifier from the SessionHandler backend.

Paramètres
string$idThe session identifier.
Renvoie
string The session data.
Depuis
1.7.0

◆ register()

register ( )

Register the functions of this class with PHP's session handler

Renvoie
void
Depuis
1.7.0

◆ test()

static test ( )
static

Test to see if the SessionHandler is available.

Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0
Obsolète:
4.0 - Use JSessionStorage::isSupported() instead.

◆ write()

write (   $id,
  $sessionData 
)

Write session data to the SessionHandler backend.

Paramètres
string$idThe session identifier.
string$sessionDataThe session data.
Renvoie
boolean True on success, false otherwise.
Depuis
1.7.0

Documentation des champs

◆ $instances

$instances = array()
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :