MyBB Community Forums

Full Version: Which file does authentication happen?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to replace the cookie with a token

I'm guessing it checks some DB to see if the cookie exists, and says OK/NO
I want to replace that with some PHP stuff that signs the cookie/token and says OK/NO

At least I hope it'll be that simple lol

edit: oh think i might have found something at \inc\class_session.php

edit: nvm I don't think this would work cuz the responses from the server never send anything back in the headers so I can't refresh the token on the user's browser

maybe i need to incorporate cookies on my main website instead, and use tokens to talk between the forum and the main website, and the same cookie between the two stored in the user's browser... somehow