How to verify the xf_user cookie?


Active member
I am making another website and I want to use the Xenforo cookie for logins.

I noticed there is a cookie like this which has the userid, %2C, and a 40 character hex string.


How do I use this hash to verify the cookie was not tampered with? Or is there a better way to get the current user without loading the xenforo library in php?

Never mind I just decided to use the session cookie.