|
|
 |
RE: FN-FORUM: Timer!
date posted 17th January 2005 11:19
It depends on why your client wants to restrict access to a limited time
period. If it is to limit the user to not doing the module again (or passing
their details to someone else) then they would be better specifying a
realtime limit (perhaps 3 days or something) and telling the user that they
must complete the course in that time. If it is for performance purposes
(the user must "pass" the module in a certain number of hours) then you
would be better of maintaining a clock using a combination javascript and
database, with a big visible timer on the page that can be "paused" (hiding
the page) if the user needs to take a break, although (as others have
pointed out) this is fraught with risks and can easily be bypassed.
Adam
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of JB
Media Ltd
Sent: 17 January 2005 11:56
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: Timer!
Hope everyone had a good weekend!
I have a challenge. A customer runs an online training company. The pages
are restricted using username's and passwords. He now wants to specify a
time limit on certain pages. So for instance, if a module takes 12 hours to
complete he wants the users access to that module to expire after a total of
12 hours of viewing it.
I first thought of just having a cookie that expired after 12 hours, but
then I realised the student wouldn't be doing the course for 12 hours solid,
he/she would be doing it in chunks.
I need to come up with some sort of timer, obviously, but I'm at a loss at
the moment.
Has anyone got any better suggestions, as I'm scratching my head a little
now and the weekends merriments are taking their toll this morning.
BTW I'm working in ASP with an Access DB.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005
--
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
|
 |
|