JSessionHandlerInterface
interface JSessionHandlerInterface
Interface for managing HTTP sessions
Methods
Starts the session.
Checks if the session is started.
Returns the session ID
Sets the session ID
Returns the session name
Sets the session name
Regenerates ID that represents this storage.
Force the session to be saved and closed.
Clear all session data in memory.
Details
boolean
regenerate(
boolean $destroy = false,
integer $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.
void
save()
Force the session to be saved and closed.
This method must invoke sessionwriteclose() 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.