How to verify the xf_user cookie?

bottiger

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.

xf_user=1%2Ce7b78a045bbb24543745092b09aaa3ea9e2ecbad

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?

Update
Never mind I just decided to use the session cookie.
 
Top Bottom