How can I keep users logged in permanently

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandrose
    Senior Member
    • Feb 2001
    • 389
    • 5.0.X

    How can I keep users logged in permanently

    How can I keep users logged in permanently
    http://www.vbulletin.com/forum/filed...ledataid=63608
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4021
    • 5.7.X

    #2
    If you click Remember Me, it will only remember your login in the cookie for 30 days in the specific browser you're using in that same computer/device.

    Even if you modified the php code to remember the cookie for years, the user will still be logged out if the cookie is deleted.

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • sandrose
      Senior Member
      • Feb 2001
      • 389
      • 5.0.X

      #3
      Originally posted by Glenn Vergara
      If you click Remember Me, it will only remember your login in the cookie for 30 days in the specific browser you're using in that same computer/device.

      Even if you modified the php code to remember the cookie for years, the user will still be logged out if the cookie is deleted.

      I tried already, but practically, it doesn't keep me logged in for 30 days only 15 minutes. Is there a problem in my server?
      http://www.vbulletin.com/forum/filed...ledataid=63608

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        Do you allow users to login to your site via both http://www.yoursite.com and just http://yoursite.com? If so, 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.

        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

        • sandrose
          Senior Member
          • Feb 2001
          • 389
          • 5.0.X

          #5
          Originally posted by Lynne
          Do you allow users to login to your site via both http://www.yoursite.com and just http://yoursite.com? If so, 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.

          It is already set to ".sandroses.com" before.

          http://www.vbulletin.com/forum/filed...ledataid=63608

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            Have you checked the uptime of your mysql server? If that goes down, all the sessions get dropped.

            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


            • Wayne Luke
              Wayne Luke commented
              Editing a comment
              They shouldn't be lost on vb5. The session table should be INNODB.
          • sandrose
            Senior Member
            • Feb 2001
            • 389
            • 5.0.X

            #7
            I checked the mysql uptime and I think it is fine:

            mysql> SHOW GLOBAL STATUS LIKE 'Uptime';
            +---------------+---------+
            | Variable_name | Value |
            +---------------+---------+
            | Uptime | 2663102 |
            +---------------+---------+
            1 row in set (0.04 sec)

            http://www.vbulletin.com/forum/filed...ledataid=63608

            Comment

            • Merenguista
              Senior Member
              • Jul 2010
              • 555
              • 5.3.x

              #8
              I have this issue too on my 2 forums ..

              My forums keeps me logged in for only 30 minutes, although I click Remember Me !!

              Comment

              • sandrose
                Senior Member
                • Feb 2001
                • 389
                • 5.0.X

                #9
                There is no solution.
                http://www.vbulletin.com/forum/filed...ledataid=63608

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 74167

                  #10
                  Delete your cookies, all of them, and try again. This happens when cookies get corrupted or duplicated which happens frequently with browsers.

                  However with a cookie based system like vBulletin's, there is no way to guarantee 100% login. The cookie system simply isn't designed that way.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...