Re: How to allow only ONE user on an ASPX web site? (C#)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Wed, 17 Oct 2007 16:26:36 +0100, "Mark Rae [MVP]"
<mark@xxxxxxxxxxxxxxxxx> wrote:

"S_K" <steve_kershaw@xxxxxxxxx> wrote in message
news:1192633406.507739.140070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have an .aspx website developed. Because of the nature of the web
site only one user can be using this site at the same time. How do I
lock out the second user? Application["...] variable perhaps?

Only if you can absolutely 100% trust your user(s) to log out via a means
that you provide so that you can reset the Application variable...

ASP.NET has no reliable way of knowing if a user has navigated away from
your site, or closed their browser etc...

What about this method? - it works fine for me:

http://www.eggheadcafe.com/articles/20051228.asp
.



Relevant Pages

  • Re: How to allow only ONE user on an ASPX web site? (C#)
    ... lock out the second user? ... ASP.NET has no reliable way of knowing if a user has navigated away from your site, or closed their browser etc... ... Mark Rae ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Trouble with IE6 home page
    ... browser hijacking ... These and other third-party programs can lock the IE homepage. ... Norton AV 2006 (Web Browsing> Spyware protection) ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Address Bar Problems in IE6
    ... Hanging application IEXPLORE.EXE, version 6.0.2800.1106, hang module ... > browser will lock up. ... > MB total) and installing Micro Trend's anti virus ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Call Wait Loop?
    ... - does the first request return any status information? ... Can anyone show a clever combo of setTimeout or equivalent so I can ... lock up the browser while I'm waiting/looping... ...
    (microsoft.public.scripting.jscript)
  • Re: OTElection campaign was:P Hannah
    ... think you have the lock on knowing. ... knitting it herself or weaving it herself, She isn`t well paid, but ... sure isn`t exploited nore exploiting,,, me.. ...
    (rec.crafts.textiles.needlework)