I talked about this in a previous question, but since then I narrowed down this question to provide an opportunity to get an answer. Firstly, some background.
I have an ASP.net website that works fine on a local server, but when it is on a real server and accessible from outside, it has some problems with the session data, which sometimes cause errors. The first question turned out to be a problem with IE9. The session variable simply did not persist after it reached the second page and hit the stored procedure. I fixed this by indicating that the page starts in IE7 mode with
This still happens in some browsers (in particular, it happens -once- with firefox), but I created a loop that forces it to return to the menu page when the session variable is empty, so it just appears when the page does not load and the " open "can be pressed again.
However, a new problem occurs when I try to save data in a form. It passes several session variables to the stored procedure interface (for example, personnel identifier, etc.), and it appears that it expires. However, all the timeouts for the session defined in webconfig and IIS are extremely large (many hours), and the workflows are configured so that they never end or are not processed. In addition, this happens even after a minute or two, so there can be no timeout. This is exactly the same as randomly losing session values. The strange thing is that if you go back and save again - doing the same things with the same data - it works. It sometimes takes a few iterations, but it will eventually work.
The strange thing also is that it tends to randomly lose parts of the viewstate - such as field values, but it can be unrelated and have more to do with fields that are automatically populated when loading. But I thought that I would include this in case he offers, and information on why this can be done.
I am considering a workaround by dumping session variables into viewstate variables as soon as the page loads, but I really would like to address the problem directly, so I wonβt have to deal with it in the future when I cannot do this. Is there some kind of poriton IIS (by the way, this is IIS 6) that could be the culprit? Are there session variables known only for dying when thrown around? I canβt say that I know a lot about server setup, but I learned a lot from this situation, and beating it will be a great victory for my fighting spirit. Thanks for reading and wish it took so long!