Avatar of jamesamuir
jamesamuir

asked on 

ASP.NET Session Size Limit

Let me preface this by saying that I am working on an application that I did not write. If that had been the case, i would not have made the decisions that are causing this problem.  That being said......The application is using cache and session to store datatables, controls, and (gasp) viewstate information. I am noticing that the session drops when users perform certain actions. After digging around i found that the viewstate for the page keeps growing when performing ajax postbacks from an Infragistics webgrid.  When i navigate to a different page and navigate back, the viewstate (in session) is refreshed.  So, i was wondering, do the html changes just get appended to the viewstate on ajax postbacks instead of actually refreshing it?
.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
jamesamuir
Avatar of Praveen Venu
Praveen Venu
Flag of India image

if you dont need viewstate then try disable it
Avatar of jmwheeler
jmwheeler

Why is the ViewState being stored in Session?
Avatar of jamesamuir
jamesamuir

ASKER

praveenvenu - Viewstate is still being utilized, only one page is storing it in session

jmwheeler - Good question (thus the reason for the preface).  The users wanted the ability to be able to view the record details on a different page without a popup window but still have the ability to retain the edits that were made to the grid without being prompted to save.  Storing the viewstate in session allows the user to navigate away from the page and then return to the edits that were made.  I dont agree with the way in which it was done but it would require a rewrite of some major functionality to do it correctly which out of the question at this point.  
ASKER CERTIFIED SOLUTION
Avatar of jamesamuir
jamesamuir

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo