Connecting Tech Pros Worldwide Help | Site Map

RE: IIS and Session Variables

  #1  
Old August 20th, 2008, 03:35 AM
=?Utf-8?B?T2xkIFBlZGFudA==?=
Guest
 
Posts: n/a


"Eric" wrote:
Quote:
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.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session variables getting lost frequently maxkumar answers 2 October 17th, 2006 01:05 PM
session variables, Timeout and Recycling Ed answers 5 July 19th, 2006 01:45 PM
Lose session variables in a projet but not in other one... Tomas Martinez answers 2 January 18th, 2006 05:55 PM
IIS Session variables / cross-access from PHP <-> ASP.NET Marco Ippolito answers 2 November 18th, 2005 07:57 PM
Session Variables... Microsoft answers 3 July 19th, 2005 12:31 PM