MyBB Community Forums
[How To?] How to log out from MyBB through a third party script? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] How to log out from MyBB through a third party script? (/thread-129808.html)



How to log out from MyBB through a third party script? - Hall of Famer - 2012-11-22

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.