RE: IIS and Session Variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?T2xkIFBlZGFudA==?=

    RE: IIS and Session Variables



    "Eric" wrote:
    What are the dangers of using session variables in IIS 6.0. My application
    is servicing about 500 users each of which are authenticated separately and
    have individual characteristics that are stored in cache and session
    variables.
    Do the math.

    Suppose all 500 users happened to be online simultaneously.

    Suppose your web server has 2GB of memory (even my laptop has that much).

    Suppose you are willing to dedicate 5 megabytes (a drop in the bucket) of
    memory to session variable usage.

    So 5MB/500 is 10KB per user.

    Meaning that is you don't store more than 10KB of information, per user, in
    session variables, you are way way home free.

    Willing to dedicate 50MB to the cause? Now you can have 100KB per user.

    But I'm here to tell you now that if you have 100KB per user, you are doing
    something wrong, anyway. At that point, you should be using a database as
    your "cache" instead of session variables. 2KB or 3KB? Sure.
    *Occasionally* 10KB? Maybe. But 100KB? You have a bad design.


Working...