MyBB Community Forums

Full Version: Cookie Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Guys i just shifted my forums to new host and domain name.

The processes i did was i first exported database from phpmyadmin and imported it on new host database.

Then i uploaded files and edited inc/config.php and inc/settings.php

actually my previus installation was on sub forum "yourdomain/forums"

now its not on sub forums its main domain.

so i changed cookie to "/" only from "/forums/"

All the members and posts and shifted sucessfully but when i try to login it logins sucessfully but redirects back to the same page and i am not logged in.

"it says logged in sucessfully and then redirects me and then i see that i am not logged in "

PLEASE HELP someone.
i think my old cookie path was "forums/" now i host it on root folder and no sub folder and so now my cookie path shud be "forums/" or "/".because i just transfered the database at it was.
(2012-04-13, 09:08 AM)Yoshi Oak Wrote: [ -> ]i think my old cookie path was "forums/" now i host it on root folder and no sub folder and so now my cookie path shud be "forums/" or "/".because i just transfered the database at it was.

Your cookie path should be "/".

After you change it in the ./inc/settings.php yo then go to your ACP > Configuration > General Configuration' and correctly set your Cookie Domain and cookie path as per the thread in the link in previous post.
its "/"i still have that problem,do i need to make some MySQL database changes cause i dint took a back up but imported the databse from phpmyAdmin.
Have you tried as posted cleared your browser's cookies and then try again?

And if still not working try what is suggested at the bottom of the thread linked in previous post about downloading your ./inc/settings.php, and then delete it from your server just in case it doesn't regenerate itself, you can then re upload your downloaded copy.

Also make sure your CHMOD Files and Directories listed at bottom of the ACP>>Tools and maintenance are writable.

Still no joy then you need to post a link to your forum as mentioned in the help thread.
i did deleted that copy and when the new copy is formed,it had old domain in its so i again changed it and the problem continues.
And i also cant log in to ACP to change settings.
If your forum is now in root folder ( http://www.mysite.com ) then

Quote:cookie path: /
cookie domain: .mysite.com



CHMOD for settings.php (in inc folder) should be 666.
i alredy did it but the problem continues.

this is my forum URL - http://thebattlepalace.tk/

and this is my old forum URL from where i transfered - http://palace.x10.mx/forums.

This might be helpful.

If you want i can give my whole settings.php or give the auth here FTP account details so that they find out the problems.

I really dont understand what can be the problem and why it is happening,i did all steps correctly and still its not working.

$settings['cookiedomain'] = ".http://thebattlepalace.tk/";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

$settings['bbname'] = "The Battle Palace";
$settings['bburl'] = "http://thebattlepalace.tk/";

These are the changes i made.
Why do you have .http://thebattlepalace.tk as cookie domain,shouldn't it be .thebattlepalace.tk ?
Pages: 1 2