SessionCapable
trait SessionCapable (View source)
Provides session-based API communication methods.
Use this trait in SessionClient classes whose underlying API supports persistent sessions (login/logout lifecycle).
Methods
saveSession(array $session)
Apply session data to a PHP session object
reuseSession(array $session)
Rebuild connection settings from a PHP session object
Details
Response
login()
Perform API login to start session-based communication
Response
logout()
Perform API logout to close API session in use
SessionCapable
saveSession(array $session)
Apply session data to a PHP session object
SessionCapable
reuseSession(array $session)
Rebuild connection settings from a PHP session object