ISO Image
Creator


Perfection the session
Jan 17 2006, 07:09 PM
![]()
Themer
![]()
Group: Members
Posts: 120
Joined: 17-March 05
From: England
Member No.: 29,841
United Kingdom
![]()
With my improved login and session system, I need a little function that will delete a session from the database. It's tricky, because, if I just simply delete a session that excesses a certain amount of time, but the user is still on the site, just taking extremely long to read something, or is away for a while. But if I make the time too long, people will assume the other person is online, but they left ages ago.
How would I go about deleting sessions from the database when they actually leave? Or how long would you recommend a session to last?
What I'm basically trying to do is make things a little more accurate.
Would you say after about half an hour of no activity, the session should be deleted? Or what?
-Mackins
Feb 6 2006, 08:16 PM
![]()
Administrator
![]()
Group: Admin
Posts: 10,302
Joined: 9-February 03
From: Jacksonville, FL
Member No.: 1
United States
![]()
it only SHOWS users that have been active in the last 15 minutes (settable in the ACP).
it DELETES users who haven't been active in over an hour (when the task runs).
My recommendation = put into your configuration settings for both.
Then, anyone you give/sell this to, can't really complain because they have the control. Something like:
Session: Time of inactivity before the user will not be shown as 'Online'
Session: Time of inactivity before the user's session will be deleted completely
Feb 7 2006, 11:16 AM
![]()
Themer
![]()
Group: Members
Posts: 120
Joined: 17-March 05
From: England
Member No.: 29,841
United Kingdom
![]()
And thanks for the advice
-Mackins


Lo-Fi Version
Time is now: 23rd May 2012 - 02:03 PM
![]()
Webber Enhanced skin created by Im4eversmart of RuneHQ.