A cookie might be the easiest way, session variables wouldn't be much
harder.
Setting a cookie with a timestamp after they login would give you a login
time that expires at midnight of that day. Then in you header check to see
if 60 minutes have passed by. If so give them a message that they have
exceeded their timelimit and set another cookie that expires at midnight
that signifies that their time online has been exceeded. Your login program
should then check for the existence of the timelimit cookie, and see how
long they have been online.

jon
----- Original Message -----
From: "Andrew Richardson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 6:19 PM
Subject: CF Newbie Question...


> Since we are on the topic of session variables...
>
> I maintain an 'extranet' with a rag-tag IT Team that is
> ssl protected with NT directory level security. We also use CF
> to log users participation in areas of the site, restrict users
> from seeing different graphics and/or links, and even add users
> to NT with the appropriate permissions through a web form.
>
> The pages throughout the site have a cfinclude template file
> as a header and one as a footer.
>
> I want to be able to force someone out of the site after they
> have spent 60 minutes there, and not let them return.
> Maybe setting a value in the database after 60 minutes for that user
> and having a tag on each cfinclude to check that variable for each new
> loaded page? Essentially making the site inoperable for that user?
>
> Any idea's on how to do this? Is there some sort of counter that
> I can include in the cfinclude footer?
>
> Any other ideas or samples?
>
> Thanks much!
>
> Andrew "RADAR" Richardson
> _____________________________
> Andrew Richardson
> Information Technology Manager
> CENTRA Technology, Inc.
> 83 Cambridge St, Suite 1A
> Burlington, MA 01803
> 781.272.7887
> [EMAIL PROTECTED]
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to