Re: Singletons in asp
- From: "PokerMan" <nospam@xxxxxxxxxxxxxx>
- Date: Mon, 19 Mar 2007 14:40:55 -0000
yes .net sorry.
I am more wanting to know how it will handle a singleton implementation not
how to implement one, tho i cant see an singleton implementation on that
blog? Is it very different to a standard one on .net?
"sloan" <sloan@xxxxxxxxx> wrote in message
news:%23GxTXJjaHHA.1216@xxxxxxxxxxxxxxxxxxxxxxx
First, I'll assume you're speaking of asp.net and not just asp.
They are different things.
Here is an example of a asp.net singleton:
10/24/2005
Web Session Wrapper for storing and retrieving objects
http://sholliday.spaces.live.com/blog/
PS
You should mark
public class WebSessionDataStore
as [Serializable]
and make any objects you put in there serializable if you go to sql server
session state management.
"PokerMan" <nospam@xxxxxxxxxxxxxx> wrote in message
news:ukskBEjaHHA.4788@xxxxxxxxxxxxxxxxxxxxxxx
Hey guysmy
Just a quick question. If i had a static var, then all users coming onto
site will be sharing the same var. So if i have a class that is asingleton
would the same happen there?singleton
Basically i have a class that will only ever have one instance so,
makes sense. But due to asp and lots of connecting users it had mewondering
if the singleton would work as one isntance per user or one instance forall
users (not what i want)
Thanks
.
- Follow-Ups:
- Re: Singletons in asp
- From: sloan
- Re: Singletons in asp
- References:
- Singletons in asp
- From: PokerMan
- Re: Singletons in asp
- From: sloan
- Singletons in asp
- Prev by Date: Re: VS2005 - how to specify location of a text file in dev and production?
- Next by Date: Re: Singletons in asp
- Previous by thread: Re: Singletons in asp
- Next by thread: Re: Singletons in asp
- Index(es):
Relevant Pages
|