Re: How to allow only ONE user on an ASPX web site? (C#)
- From: mark4asp <mark4asp@xxxxxxxxx>
- Date: Thu, 18 Oct 2007 05:55:11 GMT
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
.
- Follow-Ups:
- Re: How to allow only ONE user on an ASPX web site? (C#)
- From: Mark Rae [MVP]
- Re: How to allow only ONE user on an ASPX web site? (C#)
- References:
- How to allow only ONE user on an ASPX web site? (C#)
- From: S_K
- Re: How to allow only ONE user on an ASPX web site? (C#)
- From: Mark Rae [MVP]
- How to allow only ONE user on an ASPX web site? (C#)
- Prev by Date: FormView PageIndexChanging DataKeys
- Next by Date: Re: AJAX Controls
- Previous by thread: Re: How to allow only ONE user on an ASPX web site? (C#)
- Next by thread: Re: How to allow only ONE user on an ASPX web site? (C#)
- Index(es):
Relevant Pages
|