|
|
 |
RE: FN-FORUM: Timer!
date posted 17th January 2005 11:32
I like the sound of that.
Fortunately, the students will nearly always be accessing the course from
the same machine, so deleted cookies might not be a problem.
I think Adam's idea is probably the most logical though, and not be so
strict on the time limits and give 4 or 5 days access perhaps.
Let me mull it over for a bit.....
Thanks for the input people
Tom
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Tony
Crockford
Sent: 17 January 2005 12:33
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: Timer!
At 12:11 on Monday, 17 Jan 2005, Tony Crockford wrote:
>
> At 11:55 on Monday, 17 Jan 2005, JB Media Ltd wrote:
>
>> I need to come up with some sort of timer, obviously, but I'm at a loss
>> at
>> the moment.
I had another thought...
store a cookie on their machine and store a login start timestamp in your
database.
increment their cookie every few minutes with a timestamp and time elapsed.
when they log-in again compare the timestamp in their cookie with the
timestamp in the database.
if they close their browser without logging off, the last time in the
cookie will tell you roughly when they closed out.
you'll need to do some jiggery pokery to calculate time elapsed for
multiple sessions, but that could be part of the log-in routine.
now, how would you handle deleted cookies?
;o)
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|