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é
|
Fonctions membres publiques | |
start () | |
isStarted () | |
getId () | |
setId ($id) | |
getName () | |
setName ($name) | |
regenerate ($destroy=false, $lifetime=null) | |
save () | |
clear () | |
Interface for managing HTTP sessions
joomla/session
package clear | ( | ) |
Clear all session data in memory.
Implémenté dans JSessionHandlerNative, et JSessionHandlerJoomla.
getId | ( | ) |
Returns the session ID
Implémenté dans JSessionHandlerNative.
getName | ( | ) |
Returns the session name
Implémenté dans JSessionHandlerNative.
isStarted | ( | ) |
Checks if the session is started.
Implémenté dans JSessionHandlerNative.
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.
boolean | $destroy | Destroy session when regenerating? |
integer | $lifetime | Sets 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. |
Implémenté dans JSessionHandlerNative.
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.
RuntimeException | If the session is saved without being started, or if the session is already closed. |
Implémenté dans JSessionHandlerNative.
setId | ( | $id | ) |
Sets the session ID
string | $id | The session ID |
Implémenté dans JSessionHandlerNative.
setName | ( | $name | ) |
Sets the session name
string | $name | The name of the session |
Implémenté dans JSessionHandlerNative.
start | ( | ) |
Starts the session.
RuntimeException | If something goes wrong starting the session. |
Implémenté dans JSessionHandlerJoomla, et JSessionHandlerNative.