LLMS_Session::destroy()
Destroys the current session
Description Description
Removes session data from the database, expires the cookie, and resets class variables.
Return Return
(boolean)
Source Source
File: includes/class.llms.session.php
public function destroy() { // Delete from DB. $this->delete( $this->get_id() ); // Reset class vars. $this->id = ''; $this->data = array(); $this->is_clean = true; // Destroy the cookie. return llms_setcookie( $this->cookie, '', time() - YEAR_IN_SECONDS, COOKIEPATH ? COOKIEPATH : '/', COOKIE_DOMAIN, $this->use_secure_cookie(), true ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |