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

8/22/2022 - Mon
Praveen Venu

if you dont need viewstate then try disable it

Why is the ViewState being stored in Session?

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.  
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question