MyBB Community Forums

Full Version: Cannot logout of Portal.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I changed portal.php to index.php and made the correct changes in the file to move it to my root directory. But when I click the logout button it will log me out of the forums but on the portal page it still shows me as logged in (but if I click any of the links it brings me to the forum and asks me to login).

Any ideas?
KuJoe Wrote:I changed portal.php to index.php and made the correct changes in the file to move it to my root directory. But when I click the logout button it will log me out of the forums but on the portal page it still shows me as logged in (but if I click any of the links it brings me to the forum and asks me to login).

Any ideas?

I moved portal.php to my site's root & renamed it to index.php, then edited its code so it would redirect when logging in to index.php (not portal.php that doesn't exist anymore). And now I've got the same problem:
-Logging out of portal redirects to the forums, then when checking back the portal I see that I'm still logged in but can't view PM, CP or other account-related links.
-Can't check PM or CP after logging in on portal.
-Also, if I click "click here if you don't want to wait any longer" while logging out, it won't log me out.

Maybe we ought to move private.php, usercp.php & other functions from /forums to the root where index.php (ex portal) is placed?
I was thinking of that, I will try that tonight when I'm at work. I was hoping it was just a cookie issue but I've tried various cookie settings to no avail. Sad
Try making your cookie path: /

Clear your cookies and try logging in/out again.

You shouldn't need to move any other files to the site root. However, ensure that the forum directory is set correctly at the top of portal.php (or whatever you've consequently named it)
I did.
I have my cookie domain set to: .mydomain.com
My forums are located at: forums.mydomain.com
My portal (index.php) is located at: www.mydomain.com
Link to your forum please?
Works fine here. Make sure you clear your cookies and cache from your browser.
Hmmm, it's working for me also. Guess it just wanted some attention. LoL
Bleh I don't like renaming the files XD

I created an index.html file with this code:
<meta http-equiv="refresh" content="0; url=http://yourwebsite.com/portal.php">

The zero in content is the loading time, and now whoever uses http://yourwebsite.com is routed directly to the portal, and if they click the Banner image they're just refreshing the Message Board Big Grin

Just my preference I guess ^^
I was considering that or altering my .htaccess but I like it this way as it's much cleaner. Big Grin
Pages: 1 2