c# - ASP.Net Session clearing between postbacks? -


It's picking up today and weird, we can not understand what changed, but it was working first .

Basically, we have a class named "Project Session" which captures methods to do with static properties and sessions.
The main code is ProjectSession.ProjectId which is nothing but HttpContext.Current.Session ["ProjectID"] for wrapper. When a new project is created, then we set the ID in this property. If the user already has a project, then we set the price on page load (if! Postcode!) Very simple.

However, from today on halfway through the day, we suddenly started seeing the value that disappeared from the session. Actually the entire session is exiting the object. On the first page of the site, we set the price, if the user has a project. Then on the very first button click, we check the value and it is empty.

Every piece we have worked on today does not seem to be affected, and in fact everything works fine on our production server, not just on our local machine.

If anyone has any thoughts, please tell me what may be the reason for this.

PS - & gt; We have double, triple and quadruple 0 lines of code that are ProjectSession = and there are exactly two lines of code that are called ProjectSession.ProjectID = and they are 2I These are the questions mentioned in this question. << Div class = "post-text" itemprop = "text">

Cassini will reset the "app pool" (this is not the same as IIS) at all times. As much as you can, to be closer to production, you should test yourself in an environment. At least I suggest that use IIS if it is an important bug that you are trying to solve and reproduce.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -