Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block a page if there is more than a user to access

Status
Not open for further replies.

anitalulu

Programmer
Nov 19, 2002
23
HK
I want to block a cfm page if a user has already loaded that cfm page. Other users cannot be acccess that page.

<!--- block the following code if more than one user to access --->
<cfform name = &quot;form1&quot; action=&quot;#self#?fuseaction=#fusebox.XFA.UploadHomepage#&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;>
<cfinclude template=&quot;dspUploadHomepageForm.cfm&quot;>
<p align=&quot;right&quot;><input type=&quot;Image&quot; name=&quot;Upload&quot; src=&quot;img/btn_submit.gif&quot;></p>
<!--- End --->
</cfform>

Is there any suggestion?
 
you can use CFLock tag to prevent deadlocks and to prevent writing/reading data simultaneously.
 
You can count active user of your site (or a page). If there is one, send the accessing user to another page. If you want to find how to count active user, this link is a good start:
Goodluck.
mansii
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top