"Eric" wrote:
What are the dangers of using session variables in IIS 6.0. My applicationDo the math.
is servicing about 500 users each of which are authenticated separately and
have individual characteristics that are stored in cache and session
variables.
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.