vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=67114

Workaround session timeout too fast
by StewardManscat
13 Jul 2004 00:50

I posted a note on this subject earlier and cannot locate it now.
If it was moved or deleted please let me know so I do not make the same mistake again.

Meantime, another fellow is looking for this, and I don't want to post a hack at vbulletin.

Problem: something funny with php session logic (?) Some customers get logged out way too fast. Cannot use "remember me" because we are an adult site.

1. Change STANDARD ERROR and login templates so that the "remember me" field is type="hidden" and value="1"

2. In includes/functions.vbsetcookie add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Result:

1. Users stay logged in for four hours. No instant session timeout.

2. Can now use the photopost vb forum integration right out of the box, no mussing with sessionhash cookie lookup

3. Can never have "remember me" (a good thing for our site).

Andreas 13 Jul 2004 00:59

Hmm ... you can define the cookie timeout in vBulletin settings.
No need for a hack?

Zachery 13 Jul 2004 04:47

Quote:

Originally Posted by KirbyDE
Hmm ... you can define the cookie timeout in vBulletin settings.
No need for a hack?

Im fairly sure KirbyDE is right.


All times are GMT. The time now is 06:09.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.