PDA

View Full Version : Updating sessions lastactivity on site


CampinCarl
03-28-2009, 07:28 PM
I have my forums and website hooked together but I'm having a problem where the users lastactivity won't get updated unless they view forum pages.

Does anyone know how I would update the users lastactivity on my website so they don't get logged out from being inactive?

I looked in the $vbulletin->session array and found multiple lastactivity values. Do I need to change any of the values here?

Lynne
03-28-2009, 08:19 PM
Do you have global.php included on those pages? I believe it will do what you want if you include that script.

CampinCarl
03-28-2009, 08:26 PM
Yes I do have global.php included : /

Lynne
03-28-2009, 08:49 PM
What do you have your cookie settings set at? Maybe that is wrong and that is why the users are getting logged out.

CampinCarl
03-28-2009, 09:01 PM
The cookie path is set to "/" and the forums aren't on a sub domain so it's using the default cookie domain settings.

Dismounted
03-29-2009, 03:56 AM
Change the forum domain to ".mydomain.com" (note the preceding dot).