Click to See Complete Forum and Search --> : Maximum number of Session variables
msdnexpert
Jun 21st, 2000, 08:40 PM
Hi there,
What is the maximum number of session and application variables that one can have on any web application using ASP? What is the criteria for deciding this?
Thanks in advance.
compuGEEK
Jun 22nd, 2000, 03:00 AM
I don't know what the maximum amount is, but you really wouldn't want to have too many because for every hit to your webserver, a session is created.
Each session variable is greater that 5KB or more in size
(usually more). You could imagine what kind of load that would be on your web server, especially if you had a handful of users on your site at the same time. Your webserver would be really slow.
I've even heard that you should disable session objects if your not gonna use them.
<% @EnableSessionState=False %>
A better solution might be to use hidden fields or cookies. If the information your passing isn't too sensitive you could pass it via the URL string.
Mark Sreeves
Jun 22nd, 2000, 02:59 PM
avoid using session variables!
session variables ARE cookies!
If the user has cookies disabled on his/her browser your site will not function as intended.
like compuGEEK suggests, use hidden fields instead if possible
read this:
http://www.4guysfromrolla.com/webtech/faq/Advanced/faq4.shtml
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.