By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Session Contents Max Length

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Jawahar Rajan" <jr****@nc.rr.com> wrote in message
news:uo*****************@twister.southeast.rr.com. ..
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

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.