Re: static vs appsession
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
rodchar laid this down on his screen :
hey all,
if i wanted to instantiate my business class just once is there a difference
between making a static variable out of it and putting it in say application
session?
thanks,
rodchar
Yes, a very big difference:
A static variable would be shared by all users of your site.
A Session variable would be visible to a single session only (and other
sessions would have other instances of it)
Hans Kesting
.
Relevant Pages
- Re: static vs session
... if i wanted to instantiate my business class just once is there a ... Application or session? ... There is not much functional difference here, as the static object will be ... (microsoft.public.dotnet.languages.csharp) - Re: Make a Windows Service start a windows program.
... |> I suppose you mean instantiate an object through remoting right? ... |> session and not from the service. ... never be implemented as Windows Services, they should be normal applications ... (microsoft.public.dotnet.languages.csharp) - Re: static vs appsession
... if i wanted to instantiate my business class just once is there a ... A Session variable would be visible to a single session only (and ... Hans Kesting ... I think the OP means the Application object, not Session object. ... (microsoft.public.dotnet.framework.aspnet) - Re: Object across pages
... If you store it in Session, ... > dim name as string ... > 1) How do I declare or instantiate my class so that it can be accessed ... (microsoft.public.dotnet.framework.aspnet) - Re: Long process might fail...how to implement a timeout?
... > instantiate an object (third party -- I have no control over it) and ... > then tell it to connect to its data source (again, no control over it). ... Don't suppose you have the code for that 'Session' object eh? ... (microsoft.public.vb.general.discussion) |
|