Use cflock type=application. It will lock that section of code on an
application-level, only allowing a single thread (request, user, session,
whatever) to have access at a single time.

Nat Papovich
ICQ 32676414
"If it was hard to write," 
says the Real Programmer,
"it should be hard to understand."


-----Original Message-----
From: Nichols, Robert H. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 10, 2000 1:05 PM
To: Fusebox
Subject: Application vs. Server Scope


Okay, I am really confused.  Can anyone help with this concept?

I have an application (defined here as a multi-session application where
more than one user can be on the web site at a time).  There is a section of
code that I only want one user in at a time.  How can I do this?

My first thought was to use server variable -- on is available, off if not.
But as I read more and more in the Forta books, I got more and more
confused.

Help me!

Bobby Nichols 
=================================================================== 
Center for Engineering & Environmental Tech.    Research Triangle Institute 
(919) 541-8009     Voice                                (919) 541-6936
Fax
                        <[EMAIL PROTECTED]>      E-mail
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to