Reduction of scope of shared properties from application to session not possible?

From: Don (unknown_at_oblivion.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 21:51:58 GMT

So, it's impossible to reduce the scope of shared properties from
application level to session level?

- Don

"Joe Fallon" <jfallon1@nospamtwcny.rr.com> wrote in message
news:uCv4tr1%23DHA.3284@TK2MSFTNGP09.phx.gbl...
> Then do not use a Shared class.
> Remove the key word Shared form all properties and methods.
>
> Be sure to add a New constructor.
>
> Then you just create an instance of the class in the app and each user
will
> have their own copy.
> --
> Joe Fallon
>
>
>
> "Don" <unknown@oblivion.com> wrote in message
> news:1DN_b.609090$X%5.236342@pd7tw2no...
> > I'm asking this for a friend of mine, so forgive me if I'm getting some
of
> > the terminology wrong (I don't have any experience with ASP.NET).
> >
> > I've got an ASP application that has some classes that have shared
> members.
> > How do I set it up so that each individual session uses a different
"copy"
> > of each shared class? Right now, every session seems to share the same
> > shared variables (like a connection to a database, for example) inside
the
> > shared class, but I don't want this. I guess, in a sense, all sessions
> are
> > sharing the same executing program when what I really want is for each
> > session to run its own copy of the program. I want each session to have
> its
> > own values for shared variables.
> >
> > Can this be done?
> >
> > - Don
> >
> >
>
>



Relevant Pages

  • Re: Handling shared classes in multiple sessions
    ... Then do not use a Shared class. ... every session seems to share the same ... > shared variables ... > sharing the same executing program when what I really want is for each ...
    (microsoft.public.dotnet.framework.aspnet)
  • Handling shared classes in multiple sessions
    ... How do I set it up so that each individual session uses a different "copy" ... shared variables ... shared class, ... sharing the same executing program when what I really want is for each ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session state is not available in this context
    ... Is the Cache's scope at application level or session level? ... So there is no session state ... You can use the Cache object as Joe suggest. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Sessions and Forms Authentication Cookie
    ... I have a folder on my site secured with Forms Authentication. ... The session time on the server is set to 20 mins. ... expiry time for the Forms Authentication cookie is 30 mins? ... The other pages are not able to read the session level ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Sharing sessions between asynchronous AdomdConnection objects.
    ... you have to take care if you create session level object ... like session level set or members ... in this case these objects are store in the session and available to any ...
    (microsoft.public.sqlserver.olap)