LLMS_Session
LLMS_Session class.
Description Description
Source Source
File: includes/class.llms.session.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Major refactor to remove reliance on the wp-session-manager library: + Moved getters & setter methods into LLMS_Abstract_Session_Data + Added new methods to support built-in DB session management. + Deprecated legacy methods + Removed the ability to utilize PHP sessions. + Removed unused methods. |
3.7.7 | Unknown. |
3.37.7 | Added a second parameter to the get() method, that represents the default value to return if the session variable requested doesn't exist. |
1.0.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- destroy — Destroys the current session
- get_cookie — Retrieve an validate the session cookie
- init_cookie — Initialize the session cookie
- maybe_extend_expiration — Extend the sessions expiration when the session is nearing expiration
- maybe_save_data — Save session data if not clean
- maybe_update_id — Updates the session id when an anonymous visitor logs in.
- set_cookie — Set the cookie
- set_expiration — Set cookie expiration and expiring timestamps
- should_init — Determines if the cookie and related save/destroy handler actions should be initialized
- use_secure_cookie — Determine if a secure cookie should be used.