Why don't you just use existing asp.net classes found in the
System.Web.Security namespace?
If you want to wrap them into your code, you can make a set of classes that
we handle all these aspects based on the existing classes, like
securityManager, userManager etc, and all your pages will use these classes.
If you want to share these classes between several applications, make them
in a separate project as a class library and include it to different
applications.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>I am a developer with many years (approx 10years) development experience
>using C++ for DESKTOP applications. I am writing a web application using
[quoted text clipped - 29 lines]
> Any help and insight from experienced web application designers would be
> much appreciated.
vapor - 24 Dec 2007 15:11 GMT
I agree here. In addition, Singletons on the web are exceedingly difficult
to create especially across a server farm - throw in web gardens and it
becomes an expensive approach.

Signature
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
> Why don't you just use existing asp.net classes found in the
> System.Web.Security namespace?
[quoted text clipped - 42 lines]
>> Any help and insight from experienced web application designers would be
>> much appreciated.
Coskun SUNALI [MVP] - 24 Dec 2007 23:25 GMT
Hi Frank,
First of all, I would like to say that I agree with both of other MVP
friends. With custom profile, custom membership and custom authorization
providers that either you can write or find on the web, you can easily get
over these kind of problems.
If you insist about using your own stuff within your Application class with
a Singleton architecture, I would like to suggest you reading about "lock"
feature in C#.
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
>I agree here. In addition, Singletons on the web are exceedingly difficult
>to create especially across a server farm - throw in web gardens and it
[quoted text clipped - 46 lines]
>>> Any help and insight from experienced web application designers would be
>>> much appreciated.
>I am a developer with many years (approx 10years) development experience
>using C++ for DESKTOP applications. I am writing a web application using
[quoted text clipped - 12 lines]
>
>etc.
Are these things your Application class does or things the web
application will have to do to support the Application class?
>Because of the nature of the work that the Application class does, there
>should not be more than one instance of it at any given time - since
[quoted text clipped - 6 lines]
>authentication/authorisation etc at the same time - so maybe a Singleton
>pattern would not be appropriate for web applications.
How does this work with the desktop application? It would seem that if
user A is running one instance of the app on box A and user B is also
running an instance on box B, concurrency issues might exist. With a
web application is both instances will run on box C. The
functionality's container isn't radically different in this respect.
>Even if I used a Singleton pattern - is the single instance restricted
>to a particular users session - or does it apply server wide - i.e.
>accross all sessions?
>
>Any help and insight from experienced web application designers would be
>much appreciated.
Re-examine the desired core functionality and determine how/if it can
be used by multiple users at once. Any possible concurrency should be
handled within the application and not be limiting the application to
a single instance.
regards
A.G.
Alvin Bruney [MVP] - 31 Dec 2007 02:20 GMT
> How does this work with the desktop application? It would seem that if
> user A is running one instance of the app on box A and user B is also
> running an instance on box B, concurrency issues might exist.
Not usually. With a desktop app, concurrency is only an issue if the clients
hit a common back end source.

Signature
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
>>I am a developer with many years (approx 10years) development experience
>>using C++ for DESKTOP applications. I am writing a web application using
[quoted text clipped - 46 lines]
> regards
> A.G.