#1  
Old 04-13-2012, 05:26 AM
Sheldon's Avatar
Sheldon Sheldon is offline
TAZ Rookie
 
Real Name: Sheldon McCallister
Join Date: Apr 2012
Posts: 25
Sheldon is on a distinguished road
Talking Cookie Help
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 "

Help me.

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.
Reply With Quote
  #2  
Old 04-13-2012, 05:44 AM
Meandor's Avatar
Meandor Meandor is offline
TAZ Regular
 
Real Name: Erwin
Join Date: Apr 2011
Admin Experience: Intermediate
Location: The Netherlands
Posts: 58
Meandor has a spectacular aura about
Default
This post on the mybb site should help:
http://wiki.mybb.com/index.php/Help:Cannot_login

Also don't forget to delete the old cookie on your pc as well since that can mess things up.
Reply With Quote
  #3  
Old 04-13-2012, 05:52 AM
Sheldon's Avatar
Sheldon Sheldon is offline
TAZ Rookie
 
Real Name: Sheldon McCallister
Join Date: Apr 2012
Posts: 25
Sheldon is on a distinguished road
Default
its the problem for all my users,and i think its the problem cause my old cookie was "forums" and i have no sub domain,do i have to make some changes in MysQL database ?
Reply With Quote
  #4  
Old 04-13-2012, 06:25 AM
Meandor's Avatar
Meandor Meandor is offline
TAZ Regular
 
Real Name: Erwin
Join Date: Apr 2011
Admin Experience: Intermediate
Location: The Netherlands
Posts: 58
Meandor has a spectacular aura about
Default
Have you changed the MyBB settings to match the new boards adress as well? I'm pretty sure there is a setting that specifies where your board is located and redirects the login based on that.
Reply With Quote
  #5  
Old 04-13-2012, 06:30 AM
Sheldon's Avatar
Sheldon Sheldon is offline
TAZ Rookie
 
Real Name: Sheldon McCallister
Join Date: Apr 2012
Posts: 25
Sheldon is on a distinguished road
Default
yes,i have edited inc/settings and inc/config.php files with the new domain.
Reply With Quote
  #6  
Old 04-14-2012, 05:12 AM
Rafio's Avatar
Rafio Rafio is offline
Desu Ex
 
Real Name: Rafał
Join Date: Feb 2008
Admin Experience: Guru
Location: Polska -> Wrocław
Age: 24
Posts: 720
Rafio is a name known to allRafio is a name known to allRafio is a name known to allRafio is a name known to allRafio is a name known to all
Default
Quote:
Originally Posted by Sheldon View Post
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.
Cheatsheet for cookie configuration in most forum softwares:

forums.somewhere.com/forums/
domain: .somewhere.com
path: /forums/


.somewhere.com/forums/
domain: .somewhere.com
path: /forums/


forums.somewhere.com/
domain: .somewhere.com
path: / or empty

somewhere.com/
domain: .somewhere.com
path: / or empty
__________________
Find me there: Misago - Python Forum Software | Medium | Twitter | Github
Reply With Quote
  #7  
Old 04-18-2012, 11:02 PM
Sheldon's Avatar
Sheldon Sheldon is offline
TAZ Rookie
 
Real Name: Sheldon McCallister
Join Date: Apr 2012
Posts: 25
Sheldon is on a distinguished road
Default
thanks Rafio.
Reply With Quote
Reply

  Admin Zone Forums > The Software Zone > Forum Software > MyBB





Currently Active Users Viewing this Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cookie path Xtreme1 vBulletin 2 05-25-2011 03:51 AM
Cookie Time Out Chris04626 vBulletin 1 12-10-2008 11:56 AM
Possible Cookie Problem? deienter vBulletin 3 10-04-2008 12:47 PM
Cookie Problem Luke Beale vBulletin 10 09-01-2006 09:17 PM
Cookie Timouts Nathan Increasing Traffic 15 03-29-2004 03:08 PM


 

All times are GMT -4. The time now is 10:42 AM.


Powered by: vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Page generated in 0.05776191 seconds with 15 queries
The Admin Zone copyright 2003-2014 All Rights Reserved. Content published on The Admin Zone requires permission for reprint.