MyBB Community Forums

Full Version: How to log out from MyBB through a third party script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well in an external script I am making, it has a login/logout system that is supposed to happen simultaneously. I easily got the login system to work, but the logout part is a huge pain. I tried any possible methods, unset cookies, destroy sessions in database, and even delete loginkey in table users. None of these worked, and I was so so confused. Can anyone please help?

Well I found out that instead of completely wiping out the loginkey, generating a different loginkey actually solves the problem. Mod please lock or delete this thread when you get a chance, thx.