Session Contents Max Length

J

Jawahar Rajan

All,
I know that using Session.Contents is frowned upon by some.
But I feel I am in situation where I cannot avoid it. I think it is better
than using a QueryString.
Is there a length on the Session.Contents variable length
i.e., Session.Contents("myVariable") = "............"
what is the max length that can be set for myVariable

Thanks
Jawahar
 
R

Ray at

What is this situation?

For the size limit of a session var, I believe that it's just based on
system resources and limits of variable types. Like, I don't think you
could create a 16 billion character string session variable, since a string
cannot be that long. But before you'd approach the limit of a string length
(which I believe is 2^31), you'd probably get an "out of memory" error. But
you can store large objects in session variables and what not, BUT DON'T.

What is the situation?

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top