MyBB Community Forums

Full Version: Logoutkey
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
i have a litte problem integrating Mybb in my site, because i need to make a logout link also in the other pages of the site, outside the forum subdirectory, but upgrading [i was running a previous version] all my old links don't work no more, because of the lack of the logout key in the link.

So, someone please could explain to me how is made the logoutkey value? Smile


PS | sorry for my bad english
the url would be yoursite.com/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}
yes but i can use mybb's classes only if i include something like this:
define("IN_MYBB", 1); chdir('forum/'); require('./global.php'); 
but this means open another connection to the db and slowing down the page loading, and problems with some php functions of my site that would be redeclared...

I was looking to understand what the logoutkey is made of, to get it directly by the site's script...

Sorry if i wasn't clear, my english isn't very good Shy
The logout key is just the md5(loginkey) which is a column in your mybb_users table
omg, it's so simple [Image: azz.gif]

Thank you very much Smile
only a little correction if somebody has my same need,
the logoutkey is the md5 encription of the loginkey!
[only now i've had time to take a look in the mybb's source Big Grin]
I said that

Tikitiki Wrote:The logout key is just the md5(loginkey) which is a column in your mybb_users table