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

How to verify the xf_user cookie?

Discussion in 'XenForo Development Discussions' started by bottiger, Sep 23, 2011.

  1. bottiger

    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.
     
  2. ThEDoZEr

    ThEDoZEr Member

    Why I may not have xf_user cookie when I logged in?
     
  3. AndyB

    AndyB Well-Known Member

Share This Page