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.


Top ↑

Return Return

(boolean) true if the expiration was extended, otherwise false.


Top ↑

Source Source

File: includes/class.llms.session.php

	protected function maybe_extend_expiration() {

		if ( time() > $this->expiring ) {
			$this->set_expiration();
			$this->is_clean = false;
			return true;
		}

		return false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.