wordpress-develop/tests/phpunit/tests/user
Andrew Nacin 97fcbef707 Tie cookies and nonces to user sessions so they may be invalidated upon logout.
Sessions are stored in usermeta via WP_User_Meta_Session_Tokens, which extends the abstract WP_Session_Tokens class. Extending WP_Session_Tokens can allow for alternative storage, such as a separate table or Redis.

Introduces some simple APIs for session listing and destruction, such as wp_get_active_sessions() and wp_destroy_all_sessions().

This invalidates all existing authentication cookies, as a new segment (the session token) has been added to them.

props duck_, nacin, mdawaffe.
see #20276.


git-svn-id: https://develop.svn.wordpress.org/trunk@29221 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 09:12:05 +00:00
..
author.php In get_the_author_posts(), if there is no current $post, return 0 and bail. 2014-05-11 00:25:29 +00:00
capabilities.php Don't default to current user for capability checks when dealing with a post without an author (post_author = 0). 2014-03-04 03:08:54 +00:00
listAuthors.php URLs need to be generated, not hard-coded, in user/listAuthors.php test. 2014-07-03 02:13:08 +00:00
mapMetaCap.php Don't default to current user for capability checks when dealing with a post without an author (post_author = 0). 2014-03-04 03:08:54 +00:00
query.php User Query: Don't blindly re-append new meta queries for capabilities. 2014-04-12 19:03:56 +00:00
session.php Tie cookies and nonces to user sessions so they may be invalidated upon logout. 2014-07-18 09:12:05 +00:00
slashes.php Avoid undefined variable notice - wp_insert_user() expects user_pass to be passed to it. 2013-09-12 06:28:25 +00:00