asp.net session dissappers -


I have a strange problem: I have a site on which there is an administrative system

in the system There is a way to edit my input. To make it easy, I can search to find their ID.

The problem occurs when the page postes the variation of the session back, I hold the "Login" value, nothing happens .. and I am being thrown out why this is happening is?

EDIT: This works for a coworker, but not for me .. Besides, it does only on certain inputs.

P> EDIT2: I get an exception but it does not say that, only "property evaluation failed" says I get it on this code line:

  feedback. Redirect (". / Admin.aspx? Search =" + u.FirstOrDefault.ProductID.ToString, False)   

and

  If you    

If you experience an exception, your session may restart

Edit on your update : Make sure you create eccount == 1 global globally and set breakpoints in app_error, session_end and session_start events . , Because FirstOrDefault will throw an exception, if the calculation is & gt; 1.

Look at this link that should cover your original problem

Comments