Session variables corruption in .NET

Posted on 2009-02-16
Medium Priority
Last Modified: 2012-05-06
Is it really correct that session variable are not to be trusted in????
I have a web app (VB.NET) deployd on a web server on the internet that seems to get the session variables corrupted (blanked out) sometimes for no good reason as I can see. There is not a timeout situation! And it happens now and then with no reasonable explanation...
I have read some articles telling that session variables may corrupt if there is a lot of users connecting to the same app at the same time. Could it be??? Isn't the session variables connected to the spesific session??
What is the point of session variables if I cannot trust in them??? What alternatives do I have???
Question by:Joar
  • 3
  • 2

Assisted Solution

g_damodar earned 400 total points
ID: 23657741

Author Comment

ID: 23659724
Just a question while I am studying your link: Shoudn't 2 browser accessing the same app create 2 sessions?

Expert Comment

ID: 23660083
If you open application in 2 seperate windows then it will create 2 sessions. But if open another browser from first browser then you will have same session on both the browsers.

Author Comment

ID: 23660228
So there should be no session variable conflicts at any time as long as different users open the same application from different PC's???
Then I feel that the link (which I neeed some time to understand...) is discussing another situation than my clients are into.
Can it be that some error handling in my app is not taken care of and thus causing destruction if the session variables?

Accepted Solution

Joar earned 0 total points
ID: 23701901
To me this insertion in the web.config seemed to solve the error situation:
    <sessionState mode="StateServer"

I was running sessionState mode="InProc"

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses
Course of the Month12 days, 16 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question