in reply to Re: How should a timed session be implemented?
in thread How should a timed session be implemented?

This works for me.

I use a mix of hidden frames, DOM, JS and lots of perl for a "threaded" website.
The thread frame refreshes itself every x seconds and updates a db field.
And a cron job checks every 5 minutes, whether a user is actually online.

So I can force logout :-)


cheers
  • Comment on Re: Re: How should a timed session be implemented?

Replies are listed 'Best First'.
Re: Re: Re: How should a timed session be implemented?
by soon_j (Scribe) on May 08, 2004 at 16:05 UTC
    Could you elaborate on your cron job... I am interested in this implementation. Thanks.
      well,
      the cronjob just runs over the session/login table and calculates whether
      a given time has been overstepped.
      if that is the case, the entry/session gets deleted/terminated.

      if you want to take a look at the website

      cheers