MyBB Community Forums

Full Version: How to decrypt cookie $_COOKIE['user'] ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I want my site Linked to mybb Forum But encoded $_COOKIE['user'] and $_COOKIE['uid']

How to decrypt ?

myBB Version : 1.6.13

I'm sorry I'm not fluent in English
Just change the cookie path to a slash and nothing else. It will then work with your website outside of the forum directory.

Use $mybb->cookies['cookiename'] to access a cookie.
Thanks for the help you
But I need decrypt result

echo $mybb->cookies['mybbuser'] ;
resullt :
1_25QmlLAUnxB5n5kRxKGuYQXqrcJOhoRLrXqD3KxkeQEFNmvVir
It is [userid]_[loginkey]
Thanks You