I don't believe there are any size of length restrictions. Of course, if you
have lot's of users, and you are storing large objects in session, you need
to consider how much memory you have at your disposal.
length restrictions do not apply to the ASP.NET intrinsic objects like
session because they holds references. The limitation, as Marina pointed
out, is available memory on the machine.
namespace WebApplication2
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
System.Text.StringBuilder str = new System.Text.StringBuilder();
for (int i = 1; i < 2000000; i++)
str.Append(i.ToString()).Append(",");