Located in /includes/class.wp-auth.php (line 2)
Array indexed by internal name of cookie. Values are arrays of array defining cookie parameters. $cookies = array( 'auth' => array(
At least one cookie is required. Give it an internal name of 'auth'.
Suggested cookie structure: logged_in: whether or not a user is logged in. Send everywhere. auth: used to authorize user's actions. Send only to domains/paths that need it (e.g. wp-admin/) secure_auth: used to authorize user's actions. Send only to domains/paths that need it and only over HTTPS
You should be very careful when setting cookie domain to ensure that it always follows the rules set out in the Set Cookie spec. In most cases it is best to leave cookie set to false and allow for user configuration to define a cookie domain in a configuration file when cross subdomain cookies are required.
Deletes all of the cookies associated with authentication
Generate authentication cookie contents
Populate variables with information about the currently logged in user
Will set the current user, if the current user is not set. The current user will be set to the logged in person. If no user is logged in, then it will set the current user to 0, which is invalid and won't have any permissions.
Sets the authentication cookies based User ID
The $remember parameter increases the time that the cookie will be kept. The default the cookie is kept without remembering is two days. When $remember is set, the cookies will be kept for 14 days or two weeks.
Changes the current user by ID or name
Set $id to null and specify a name if you do not know a user's ID
Some WordPress functionality is based on the current user and not based on the signed in user. Therefore, it opens the ability to edit and perform actions on users who aren't signed in.
Validates authentication cookie
The checks include making sure that the authentication cookie is set and pulling in the contents (if $cookie is not used).
Makes sure the cookie is not expired. Verifies the hash in cookie is what is should be and compares the two.
Documentation generated on Fri, 18 May 2012 01:33:49 +0100 by phpDocumentor 1.4.3