how do you measure the size of session in (KB, MB....)

how can you say my session object is consuming ? space in (Kb & MB)

is there any limit to session size ( Some guy said 2GB :) )

Adapost help..!

Recommended Answers

All 3 Replies

how do you measure the size of session in (KB, MB....) how can you say my session object is consuming ? space in (Kb & MB)

The size of an object in memory is not documented. However you can use Binary Serialization which gives you a rough approximation.

is there any limit to session size ( Some guy said 2GB :) )

There isn't any restriction on size. Yes, there is a 2GB maximum single object restriction in the .NET CLR . In fact the session is dictionary object which hold references of objects.

i went through all the post u suggested
but not getting the correct o/p

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.