Why do objects disappear from my session in IIS7?

I am making a series of calls to my web application (IIS7 in classic mode). The first two calls create objects and place them in a Session object.

By the time I make the third call, the session is missing an object. I expect that there will be two of my keys in the session, but there is only 1.

This is like creating multiple sessions. It should be noted that this happens a lot, it is not 100% repeatable, i.e. Sometimes everything works fine.

The objects are significant, but not huge (about 100 small lines), so it seems unlikely that I will maximize the size of the session. I do not put any other objects there.

+3
source share
3 answers

Ok, I solved it (using the global.asax tip from citron).

, , , , .

, , . Session_Start (, ). .

.

, .

+1

, , . .

global.asax Application_OnError, Session_End Session_Start,

+2

, ? , , , .

0

Source: https://habr.com/ru/post/1784931/


All Articles