Results 1 to 3 of 3

Thread: sessionState?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    sessionState?

    Hi again..

    trying to figure out in ASP.NET...

    IF i have a class (cs) and in that I create an arraylist and store objects/values, in the future I wish to retain those values in memory and have it be accessible anytime by any of the pages my ASP.NET website has.

    however in order to access this class you have to create an instance of it but when you do that it create a NEW instance, there fore the object I wish to access will not be there

    I was wondering, is there a way to "globally" create and access 1 arraylist from any page?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sessionState?

    If you mean you'd like a set of values to be available throughout the life of the application, I'd suggest you use a database to store those values.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: sessionState?

    I know that... but i do not wish for that to happen as its a bit expensive to do that, therefore i wish for it to be held in some session in memory...as the information is only very very small

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width