Add a time stamp for each section (this will require doing this in the
application.cfm).  Each time the page is hit, set the timestamp - when a
user tries to access an area, check to see if it appears that the last
user has timed out, something like:

<cfif DateDiff("m",Session.thisSection.timeStamp,Now()) GT 20)>
        <!--- let user in --->
</cfif>

---
Billy Cravens
Web Development, EDS
[EMAIL PROTECTED]


-----Original Message-----
From: Chad McCue [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 29, 2001 8:41 AM
To: CF-Talk
Subject: Defining privleges


Quick question,
    I am creating an admin section that will have multiple admins. When
one admin is logged into a certain section, I cannont allow anyother
admin to log into that same section. I am doing this by having a
variable set when the user logs in. When he logs out that variable is
changed and another admin will be able to log in. The problem I am
having is when the session times out, the variable won't get changed. Is
there a way around this, like testing for a timed out session variable?
Any suggestions for this problem would be very helpful. 

-chad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to