How can I keep users logged in permanently
Announcement
Collapse
No announcement yet.
How can I keep users logged in permanently
Collapse
X
-
Tags: None
-
Originally posted by Glenn Vergara View PostIf 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?
Comment
-
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
-
Originally posted by Lynne View PostDo 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.
Comment
-
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
-
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)
Comment
-
-
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.
Comment