• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

The xf_user cookie

AndyB

Well-known member
#1
I would like to authenticate the xf_user cookie for an external script. The xf_user cookie is created with the following command:

$value = intval($userId) . ',' . $this->prepareRememberKeyForCookie($auth['remember_key']);

When I look at the xf_user_authenticate table there is a field called remember_key. How can I verify using php that what is saved in the xf_user_authenticate table is the same as what is in the xf_user cookie.

Thank you.