Application variable

Discussion in 'ASP .Net' started by Aaron, Jan 1, 2004.

  1. Aaron

    Aaron Guest

    Is it the same as cache in asp.net?

    how do you load an app var in asp.net (C#)? Can you use app variable
    in a windows app?(.exe)

    thanks
    Aaron, Jan 1, 2004
    #1
    1. Advertising

  2. Aaron

    Paul Glavich Guest

    No, an app variable is not the same as cache. The cache
    has dependencies associated with (like expire by
    date/time or variable value) and the runtime will also
    remove items from the cache when memory gets low, whereas
    app variables dont have any of those features.

    The concept of an application variable in ASP.NET is
    different to a windows app as a windows app does not need
    to specifically maintain state in any special way as it
    simply resides in the memory of the executing machine.
    Application variables require special work as typically
    they are visible to all users/processes within your
    site/appDomain and held on the server. Nothing in the way
    of app variables are held on the client. The server must
    determine what application your request belongs to and
    make sure those application variables are visible to you.
    Kind of like session varibales except those are per
    user/session, as opposed to visible to all users like
    application variables.

    HTH,
    - Paul Glavich



    >-----Original Message-----
    >Is it the same as cache in asp.net?
    >
    >how do you load an app var in asp.net (C#)? Can you use

    app variable
    >in a windows app?(.exe)
    >
    >thanks
    >.
    >
    Paul Glavich, Jan 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brad Smallridge
    Replies:
    2
    Views:
    2,491
    Brad Smallridge
    Nov 18, 2004
  2. THY
    Replies:
    3
    Views:
    471
    Radderz
    Sep 4, 2006
  3. pratham
    Replies:
    3
    Views:
    682
    sloan
    Aug 31, 2006
  4. mfglinux
    Replies:
    11
    Views:
    682
    Roberto Bonvallet
    Sep 12, 2007
  5. David Filmer
    Replies:
    19
    Views:
    225
    Kevin Collins
    May 21, 2004
Loading...

Share This Page