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 () | |
Fonctions membres privées | |
doSessionStart () | |
Attributs privés | |
$started = false | |
$closed = false | |
Interface for managing HTTP sessions
joomla/session
package clear | ( | ) |
|
private |
Performs the session start mechanism
RuntimeException | If something goes wrong starting the session. |
Références $file.
getId | ( | ) |
getName | ( | ) |
Returns the session name
Implémente JSessionHandlerInterface.
isStarted | ( | ) |
Checks if the session is started.
Implémente JSessionHandlerInterface.
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émente JSessionHandlerInterface.
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.
Implémente JSessionHandlerInterface.
Références $data.
setId | ( | $id | ) |
Sets the session ID
string | $id | The session ID |
LogicException |
Implémente JSessionHandlerInterface.
Références $id.
setName | ( | $name | ) |
Sets the session name
string | $name | The name of the session |
LogicException |
Implémente JSessionHandlerInterface.
Références $name.
start | ( | ) |
|
private |
|
private |