[wp-trac] [WordPress Trac] #29594: Basic Cookie Authentication from External Database
WordPress Trac
noreply at wordpress.org
Mon Nov 3 21:36:09 UTC 2014
#29594: Basic Cookie Authentication from External Database
-----------------------------+------------------------------
Reporter: LPH2005 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by here):
This worked for me: Create a new token and update the the user's session
info with the WP_Session_Tokens class.
{{{
$sessionManager = WP_Session_Tokens::get_instance( $user_id );
$token = $sessionManager->create(time() + (1 * 24 * 60 * 60));
$session = $sessionManager->get($token);
$sessionManager->update($token,$session);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29594#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list