Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long string in the session variable
Message
 
 
To
13/03/2012 15:15:34
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01538230
Message ID:
01538237
Views:
32
>>When my ASP.NET application encounters an error/problem I redirect to a page that displays the error. The error message is passed to the error page by means of a session variable. I usually put a lot of stuff into this variable. So the string content of the session variable could easily take about 200 to 300 characters. Could this in the long run cause a problem?
>
>URL can accept 2048 characters, that includes the entire address as well.

I don't use the passes session variable in the URL. I simply set the .text value of a text box control to the value of the passed variable. So that the user can see the error message details right in the text box of the page.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform