LLMS_Session::maybe_extend_expiration()
Extend the sessions expiration when the session is nearing expiration
Description Description
If the user is still active on the site and the cookie is older than the "expiring" time but not yet expired, renew the session.
Return Return
(boolean) true
if the expiration was extended, otherwise false
.
Source Source
File: includes/class.llms.session.php
214 215 216 217 218 219 220 221 222 223 224 | protected function maybe_extend_expiration() { if ( time() > $this ->expiring ) { $this ->set_expiration(); $this ->is_clean = false; return true; } return false; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |