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 JSessionHandlerNative
+ Graphe d'héritage de JSessionHandlerNative:

Fonctions membres publiques

 start ()
 
 isStarted ()
 
 getId ()
 
 setId ($id)
 
 getName ()
 
 setName ($name)
 
 regenerate ($destroy=false, $lifetime=null)
 
 save ()
 
 clear ()
 

Fonctions membres privées

 doSessionStart ()
 

Attributs privés

 $started = false
 
 $closed = false
 

Description détaillée

Interface for managing HTTP sessions

Depuis
3.5
Obsolète:
4.0 The CMS' Session classes will be replaced with the joomla/session package

Documentation des fonctions membres

◆ clear()

clear ( )

Clear all session data in memory.

Renvoie
void
Depuis
3.5

Implémente JSessionHandlerInterface.

◆ doSessionStart()

doSessionStart ( )
private

Performs the session start mechanism

Renvoie
void
Depuis
3.5.1
Exceptions
RuntimeExceptionIf something goes wrong starting the session.

Références $file.

◆ getId()

getId ( )

Returns the session ID

Renvoie
string The session ID
Depuis
3.5

Implémente JSessionHandlerInterface.

◆ getName()

getName ( )

Returns the session name

Renvoie
mixed The session name
Depuis
3.5

Implémente JSessionHandlerInterface.

◆ isStarted()

isStarted ( )

Checks if the session is started.

Renvoie
boolean True if started, false otherwise.
Depuis
3.5

Implémente JSessionHandlerInterface.

◆ regenerate()

regenerate (   $destroy = false,
  $lifetime = null 
)

Regenerates ID that represents this storage.

Note regenerate+destroy should not clear the session data in memory only delete the session data from persistent storage.

Paramètres
boolean$destroyDestroy session when regenerating?
integer$lifetimeSets the cookie lifetime for the session cookie. A null value will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp.
Renvoie
boolean True if session regenerated, false if error
Depuis
3.5

Implémente JSessionHandlerInterface.

Références $return, et null.

◆ save()

save ( )

Force the session to be saved and closed.

This method must invoke session_write_close() unless this interface is used for a storage object design for unit or functional testing where a real PHP session would interfere with testing, in which case it should actually persist the session data if required.

Renvoie
void
Voir également
session_write_close()
Depuis
3.5

Implémente JSessionHandlerInterface.

Références $data.

◆ setId()

setId (   $id)

Sets the session ID

Paramètres
string$idThe session ID
Renvoie
void
Depuis
3.5
Exceptions
LogicException

Implémente JSessionHandlerInterface.

Références $id.

◆ setName()

setName (   $name)

Sets the session name

Paramètres
string$nameThe name of the session
Renvoie
void
Depuis
3.5
Exceptions
LogicException

Implémente JSessionHandlerInterface.

Références $name.

◆ start()

start ( )

Starts the session

Renvoie
boolean True if started
Depuis
3.5

Implémente JSessionHandlerInterface.

Documentation des champs

◆ $closed

$closed = false
private

◆ $started

$started = false
private

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