MyBB Community Forums

Full Version: 1.4.3 MyBB, Forum login takes me back as guest. (Solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok the problem is that

when i type my website url with WWW
Example

www.example.org
and login, it works!

but when some members just type in without WWW
Example

example.org and click Login,
I DO get the message saying
You have successfully been logged in.
You will now be taken back to where you came from.
But it will redirect them back to
http://justwatch.org, But they will not be logged in.


same for my admin panel
when i login at
example.org/admin it will login to admin panel. But when i click on anything in the admin panel. It will ask me to Login again.

But when i do www.example.org The admin login works perfect.
Your cookie settings are wrong. Open ./inc/settings.php and change your cookie domain to .justwatch.org Then change it again in ACP > Configuration > General Configuration. Now people will be able to login with or without the www. in the URL.

Smile
ok
in mt setting.php
when i search cookie
i get this lines

$settings['cookiedomain'] = ".www.justwatch.org";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

what should i change?
$settings['cookiedomain'] = ".justwatch.org";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

Then make sure that it says that in ACP > Configuration > General Configuration
ok i edited and changed it to

$settings['cookiedomain'] = ".justwatch.org";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";
and uploaded the file again.

and in my admin panle
it was .www.justwatch.org and i changed it to .justwatch.org

am i correct?
oh and it works now
thanks

oh
and my settings.php
is chmod to 777
do u think it changes to .www.justwatch.org
because of that?

becuz i didnt change anything in my cookie settings.
Yep, that's right Smile Glad it's sorted Smile
Thanx for helping
now im gona rename this thread to
Solved Big Grin
lol