MyBB Community Forums

Full Version: Cookie Value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

Quick question, does anyone know how the mybb mybbuser and mybb sid cookie value is created?

Open ./member.php and find line # 257
my_setcookie("mybbuser", $user_info['uid']."_".$user_info['loginkey'], null, true);

This is how they create mybbuser cookie. Similar procedure for sid cookie, just the difference in parameters.

In the same file, line# 1106
my_setcookie("sid", $session->sid, -1, true);
Cheers Yaldaram Smile