Click to See Complete Forum and Search --> : asp sessions Question
bddosch
01-23-2004, 09:26 AM
I am using the session object to store variables to use through my site, for example:
Dim strName, strDate, strEmail
strName = Session("Ben")
strDate = Session("19 Jan 2004")
strEmail = Session("ben@yahoo.com")
My questions are:
How much does this slow the server down?
What is the limit to how many of these I can use?
Thanks
CardboardHammer
01-23-2004, 02:19 PM
Here's some MSDN links to info which should be of interest to you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp/html/aspwsm.asp
http://msdn.microsoft.com/library/en-us/dnasp/html/asptips.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag2k/html/session.asp
bddosch
01-24-2004, 05:12 AM
Thanks you, it has helped me allot.
Bullschmidt
02-05-2004, 04:37 AM
Assuming 10 session variables for each of 100 simultaneous users at 100 bytes per session variable only adds up to 100,000 bytes (i.e. 100 KB).
And a server might easily have over 128 MB of RAM.
So in my opinion perhaps people don't need to be QUITE so afraid to use some session variables especially for sites that are never expected to have high traffic.
bddosch
02-05-2004, 06:31 AM
Thanks Bull
That does help and I think that ity does make sence.
Thanks
dosch
PeOfEo
02-05-2004, 03:51 PM
Originally posted by Bullschmidt
Assuming 10 session variables for each of 100 simultaneous users at 100 bytes per session variable only adds up to 100,000 bytes (i.e. 100 KB).
And a server might easily have over 128 MB of RAM.
So in my opinion perhaps people don't need to be QUITE so afraid to use some session variables especially for sites that are never expected to have high traffic. Might be so, so the server will not crash. But assume you are not the only one on the server. Session variables do put extra strain on the server and is not considerate to others if you are lagging it up, And vice versa.
http://www.4guysfromrolla.com/webtech/faq/Advanced/faq4.shtml