The xf_user cookie


Well-known member
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.