Codex tools: Log in
This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.
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.
<?php wp_set_auth_cookie( $user_id, $remember, $secure ) ?>
wp_set_auth_cookie() is located in