IPB

ISO Image Creator

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Perfection the session
Mackins
post Jan 17 2006, 07:09 PM
Post #1


Themer
Group Icon

Group: Members
Posts: 120
Joined: 17-March 05
From: England
Member No.: 29,841
 United Kingdom


OK. OK. Here's what I need to know.

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
Go to the top of the page
 
+Quote Post
bfarber
post Feb 6 2006, 08:16 PM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 10,302
Joined: 9-February 03
From: Jacksonville, FL
Member No.: 1
 United States


Ok, here's what IPB basically does...

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. wink.gif 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
Go to the top of the page
 
+Quote Post
Mackins
post Feb 7 2006, 11:16 AM
Post #3


Themer
Group Icon

Group: Members
Posts: 120
Joined: 17-March 05
From: England
Member No.: 29,841
 United Kingdom


Yep, I already had the changability thingy, for how long sessions last and stuff smile.gif And thanks for the advice biggrin.gif

-Mackins cool.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2012 - 02:03 PM

  Page top

Webber Enhanced skin created by Im4eversmart of RuneHQ.

  Privacy Policy 1 2 3 4 5

IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here