I am experimenting/ trying to make a file named sso.php in the root folder. And include(require_once) this file on index.php so that when the website loads, the sso.php codes will run as well. But when I entered on the forum, it says forum.com redirected you too many times . Some code in sso are:
define('IN_MYBB', 1);
require_once './global.php';
while (some code here) {
if (user email is existing){
Force user to login!
header( "Location: index.php" )
header( "Content-Length: 0" );
exit;
else{
header( "Location: member.php?register" );
exit;
}
}