Karthik
Karthik

Reputation: 1

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

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.

Upvotes: 0

Views: 1475

Answers (2)

ChrisLively
ChrisLively

Reputation: 88064

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

Upvotes: 1

Jonas Elfström
Jonas Elfström

Reputation: 31428

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

Application["ObjectName"] = Object;

Upvotes: 0

Related Questions