Logging in multiple times?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Syxguns
    Senior Member
    • Aug 2011
    • 151
    • 4.2.X

    [Forum] Logging in multiple times?

    A little info about my setup in case it is needed:


    Server: WINNT IIS v6
    PHP 5.3.4
    MySQL 5.5.8

    Okay, at first I thought the problem was with the integrated store that I have, but it turns out that the same thing happens even from the AdminCP. The only modification that I made to the template was to keep the "Remember Me" check box selected and I increased the time that someone is logged in before it automatically logs the user out. Here is the story and hopefully this is not a difficult fix.

    If I log into the vB site I have full functions available. I log into the AdminCP, and then select the "Forum Home Page" link at the top and I am directed there, but I am not logged in even though I made the change to the "Remember Me" selection and increased the time a member is logged in. I'm thinking it may have something to do with another setting in the AdminCP that I may have not saved correctly. The error only happens one time, meaning that after I select the "Forum Home Page" link, if I log in and then select the link again I'm logged in the forum. I hope this description makes since, but I will give you another way of looking at it.

    Get to forum and log in (have full access)
    Select Admin on footer and log into the AdminCP (all is fine)
    Select link at top of AdminCP Forum Home Page (opens home page but I'm not logged in)
    Log in again to forum and go back to the AdminCP and select the link again and I remain logged in.

    Is anyone familiar with this? A solution would be great! Thanks

    Edit: Tested with IE, Chrome, Firefox, and Opera all with the same results.
    Last edited by Syxguns; Sun 12 Aug '12, 6:20pm.
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    If you allow users to login to your site via both http://www.yoursite.com and just yoursite.com., then you MUST have your cookie domain (AdminCP > Settings > Options > Cookies and HTTP Header Options > Cookie Domain) set to ".yoursite.com" (no quotes, but note the period at the beginning) or your users will have problems. Also, make sure to tell your users to click the Remember Me button when they login.

    Also, do you have an .htaccess file? None comes default with vbulletin. So, try removing it if you continue to have the problem.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • Syxguns
      Senior Member
      • Aug 2011
      • 151
      • 4.2.X

      #3
      Originally posted by Lynne
      If you allow users to login to your site via both http://www.yoursite.com and just yoursite.com., then you MUST have your cookie domain (AdminCP > Settings > Options > Cookies and HTTP Header Options > Cookie Domain) set to ".yoursite.com" (no quotes, but note the period at the beginning) or your users will have problems. Also, make sure to tell your users to click the Remember Me button when they login.

      Also, do you have an .htaccess file? None comes default with vbulletin. So, try removing it if you continue to have the problem.
      Thank you Lynne,
      Two quick questions about the cookie path. I have ASP script that redirects from the primary http://www.mysite.com to http://www.mysite.com/music and of course you do not have to use the www in front. So I'm guessing that my cookie domain should be at ".mysite.com/music", would that be correct?

      Also the line above that reads, "Path to Save Cookies" I just have as "/" should I change that to "/Music"?

      It hasn't worked yet, and I do have an .htaccess file it only reads this:

      Code:
      <Files "config.php">
      Order Allow,Deny
      Deny from All
      </Files>
      
      <Files "common.php">
      Order Allow,Deny
      Deny from All
      </Files>
      Are you sure I should delete that, or do you see anything that would interfere? Thanks I haven't got it to work yet, but I haven't given the server time to refresh it's cache if that might have anything to do with it.

      Thanks again.

      My default forum is located in the /music area. I went ahead and set the path to save cookies to /music/ and because my default directory is mysite.com/music for my cookie domain do I need to use a custom setting? The reason I ask this is because originally I set up Joomla as my home page located at mysite.com but now I have the ASP script which directs mysite.com to mystie.com/music, but that option is not available in the drop down selection box.
      Last edited by Syxguns; Sun 12 Aug '12, 11:38pm.

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        Your cookie domain should just be ".mysite.com", not ".mysite.com/music" Leave the cookie path alone.

        As for the .htaccess, I was just suggesting removing it to test out your site. If you still have the same problem, then just add it back. If you don't have the same problem, then you know the .htaccess is causing the issue.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • Syxguns
          Senior Member
          • Aug 2011
          • 151
          • 4.2.X

          #5
          Originally posted by Lynne
          Your cookie domain should just be ".mysite.com", not ".mysite.com/music" Leave the cookie path alone.

          As for the .htaccess, I was just suggesting removing it to test out your site. If you still have the same problem, then just add it back. If you don't have the same problem, then you know the .htaccess is causing the issue.
          Well, I changed that path to mysite.com/music and the other to /music/ and now I can't log into the site. Is there another way to access this information?

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            You may upload the tools.php file which is in your do_not_upload directory. Upload tools.php to the admincp directory, point your browser to it, and reset the cookie domain and path.

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools &lt;- awesome site for html/css help

            Comment

            • Syxguns
              Senior Member
              • Aug 2011
              • 151
              • 4.2.X

              #7
              Thank you Lynne, that worked like a charm. I may have to wait a short while as I don't have the option to place .mywebsite.com in the drop down box right now. I set the cookie path back to "/".

              Comment

              • Lynne
                Former vBulletin Support
                • Oct 2004
                • 26255

                #8
                In the admincp, you may check the option to "Use Custom Setting (Specify Below)" and enter the ".mywebsite.com" there.

                Please don't PM or VM me for support - I only help out in the threads.
                vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                Want help modifying your vbulletin forum? Head on over to vbulletin.org
                If I post CSS and you don't know where it goes, throw it into the additional.css template.

                W3Schools &lt;- awesome site for html/css help

                Comment

                • Syxguns
                  Senior Member
                  • Aug 2011
                  • 151
                  • 4.2.X

                  #9
                  Thank you again for all of your assistance! Everything is working perfect now.

                  Comment

                  • Lynne
                    Former vBulletin Support
                    • Oct 2004
                    • 26255

                    #10
                    Glad to hear that.

                    Please don't PM or VM me for support - I only help out in the threads.
                    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                    Want help modifying your vbulletin forum? Head on over to vbulletin.org
                    If I post CSS and you don't know where it goes, throw it into the additional.css template.

                    W3Schools &lt;- awesome site for html/css help

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    😀
                    😂
                    🥰
                    😘
                    🤢
                    😎
                    😞
                    😡
                    👍
                    👎