Cookie Help

Discussion in 'MyBB' started by SheldonPS, Apr 13, 2012.

  1. SheldonPS

    SheldonPS Aspirant

    25
    6
    +0
    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.
     
    1
  2. Meandor

    Meandor Participant

    58
    13
    +3
  3. SheldonPS

    SheldonPS Aspirant

    25
    6
    +0
    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 ?
     
  4. Meandor

    Meandor Participant

    58
    13
    +3
    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.
     
  5. SheldonPS

    SheldonPS Aspirant

    25
    6
    +0
    yes,i have edited inc/settings and inc/config.php files with the new domain.
     
  6. rafalp

    rafalp Desu Ex

    967
    417
    +167
    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
     
  7. SheldonPS

    SheldonPS Aspirant

    25
    6
    +0