Groups > Asp .Net > Advanced ASP.NET Architecture > Re: How to make a web site be single access??




Re: How to make a web site be single access??

Re: How to make a web site be single access??
Wed, 2 Apr 2008 15:39:33 +0000
This will be difficult given the disconnected nature of web browsers to servers.
 Why do you need single access?  I ask because there may be an easier way to
achieve your requirement.
Post Reply
Re: How to make a web site be single access??
Wed, 2 Apr 2008 16:58:24 +0000
My site performs load tests and outputs to a table. When the page launches it
clears the table so it's ready to go for the next run. I don't want someone else
coming in and clearing the table from under the currently running page. I know I
can do this by querying a flag that I can place on a table and preventing the
page from loading, but I thought that there might be some setting in IIS or
HTTPRuntime that limited the number of instances served out.
Post Reply
Re: How to make a web site be single access??
Wed, 2 Apr 2008 17:05:32 +0000
No, this isn't possible since the web server has no idea when the client closes
the browser.  You could restrict IIS to only server pages to your IP address
with an IP Filter
Post Reply
Re: How to make a web site be single access??
Thu, 3 Apr 2008 00:03:43 +0000
"EricBlair" wrote in message news:2271787@forums.asp.net...

My site performs load tests and outputs to a table. When the page launches it
clears the table so it's ready to go for the next run. I don't want someone else
coming in and clearing the table from under the currently running page. I know I
can do this by querying a flag that I can place on a table and preventing the
page from loading, but I thought that there might be some setting in IIS or
HTTPRuntime that limited the number of instances served out.

http://forums.asp.net/p/1242060/2271787.aspx#2271787

Wrap it all up in a SqlTransaction, and the next page will wait for the
Transaction to be completed before continuing with it's DELETE statement. --MB
Post Reply
about | contact