473,513 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Session variable limits

Hello All,

I am looking into using the Session object is ASP.NET to store state
information. Does anyone know if there is a reccommended upper limit as to
how much data you should store in the session state? I'm using the Session
State in the In Process mode.

Thanks to all!

Mike
Nov 18 '05 #1
2 1932
"Mike Grishaber" <mg********@cp.org> wrote in
news:J5*******************@news20.bellglobal.com:
I am looking into using the Session object is ASP.NET to store state
information. Does anyone know if there is a reccommended upper limit
as to how much data you should store in the session state? I'm using
the Session State in the In Process mode.


I don't think there is a limit ... The limit is based on the amount of
memory you have.
Nov 18 '05 #2
It really depends on your application and how many concurrent users
you need to support. If you only need to support 5 users, you might
be able to keep 20MBs of DataSet objects around for each user by
keeping references to the objects in the Session collection. If you
did this for 100 users you could cripple the server. As Einstein once
said, it's all relative :)

The general rule of thumb is "as little as possible"

--
Scott
http://www.OdeToCode.com

On Mon, 30 Aug 2004 14:12:22 -0400, "Mike Grishaber"
<mg********@cp.org> wrote:
Hello All,

I am looking into using the Session object is ASP.NET to store state
information. Does anyone know if there is a reccommended upper limit as to
how much data you should store in the session state? I'm using the Session
State in the In Process mode.

Thanks to all!

Mike


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1944
by: opt_inf_env | last post by:
Hello, I have a page such that each user can see only a corresponding (personal) part of the page. In the beginning I wanted to perform initialization of users (by asking there names and...
1
5666
by: Jawahar Rajan | last post by:
All, I know that using Session.Contents is frowned upon by some. But I feel I am in situation where I cannot avoid it. I think it is better than using a QueryString. Is there a length on the...
1
3544
by: Justin Beckwith | last post by:
Hi all, I have a very basic ASP application in which a user is authenticated, a flag is set in a session variable, and a new window is opened. The file opened exists in the same application...
0
1541
by: Billy Boone | last post by:
I have a current web application that utilizes a login to authenticate users into the application. Once I authenticate them, I store away the user's name in a Session variable. I then utilize...
7
1837
by: Gerald | last post by:
Hi, Is there any know problem using session variables ? My website won't have more than 20 simultaneous connections, and i would like to use 5 session variables containing strings... I know...
4
1942
by: T Ralya | last post by:
I am told that ASP.NET controls the session ID and session variables, but that does not fit my symptoms. I am posting here as directed. I'm hoping that someone can at least recommend something to...
3
1926
by: pratham | last post by:
Hi and regards What is best method to have an connection to sql, iam using sqlserver 1. have an sqlconnection open when the application start event in global.asax so that i dont have to open...
3
1449
by: James Simpson | last post by:
Hello, I am currently deploying an ASP .NET based web application via Visual Studio 2005 (so I am using .NET 2.0 technology). The two questions I have are with regards to session state in...
7
5222
by: gnewsgroup | last post by:
In my asp.net 2.0 web application, in Web.config, I have timeout="30", s l i d i n g E x p i r a t i o n = "true" for the Authentication element. I suppose, this means that as long as we...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.