开发者

Storing Object State in an Asp.net application without using Session

开发者 https://www.devze.com 2023-02-20 17:46 出处:网络
In an Asp.net2.0 application I have stored the object state in the session. The object state will be changing frequently.

In an Asp.net2.0 application I have stored the object state in the session. The object state will be changing frequently. The size of the object is also large. Will 开发者_运维技巧this lead to "server error" in the application?

And also suggest whether there is any other way to store the state of the object which is large in size.


I would highly recommend that you persist this to your database and pull the parts out that you need, when you need it.


If the object is application and not user specific then you could store it in the Application State.

Application["ObjectName"] = Object;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号