p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.x and 2.0 Application Design (http://p2p.wrox.com/forumdisplay.php?f=67)
-   -   Session State|View State|Do I have other options? (http://p2p.wrox.com/showthread.php?t=32643)

rockon August 18th, 2005 04:14 PM

Session State|View State|Do I have other options?
 
All,

Is their a better way of addressing/passing datasets from one aspx page to another than using SessionState or ViewState. The problem with SessionState requires a trip back to the server and ViewState suffers performance issues when the dataset is too big?

-wroxon


jbenson001 August 19th, 2005 12:08 AM

You can use object cashing to cache the dataset.


Redden October 5th, 2005 07:10 PM

I thought the object Cache could only be used for the application and not the session

I do have some questions though.

First: What is meant by a session variable requiring a round trip to the server? I thought that the only way of storing data on the users computer was with a cookie and it had to be retrieved by the application and then sent back to the server with the new page essentially making a round trip. Isn't the Session state variable stored on the server? If so why would it have to make a round trip? Doesn't the server just fill in the new page with the data before it sends it.

The second question is about the Cache object, What are the benefits of using this instead of an application variable. Both are destroyed when the application ends. The only differences I can tell are the providing of datalocks for the cache object (which would only be needed if your application is updating the data) and the fact that an application variable is created on startup while a cache object is not created until the first time it is used. The Cache object would thus have more overhead because of the locks and the Cache management.

If there is more to it than that then I need to know because it could be something I need to look at it for the application I'm working on now.



All times are GMT -4. The time now is 12:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.