LLMS_Session::maybe_update_id()
Updates the session id when an anonymous visitor logs in.
Return Return
(boolean) true
if the id was updated, otherwise false
.
Source Source
File: includes/class.llms.session.php
protected function maybe_update_id() { $uid = strval( get_current_user_id() ); if ( $uid && $uid !== $this->get_id() ) { $old_id = $this->get_id(); $this->id = $uid; $this->is_clean = false; $this->delete( $old_id ); return true; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |