session variables lost for some reason

后端 未结 5 672
说谎
说谎 2021-02-06 17:51

I try to setup a E-shop. Next to every item I\'ve an asp:imagebutton when this imagebutton is clicked I\'m checking whehter the session varialbe session[\"bas

5条回答
  •  迷失自我
    2021-02-06 18:38

    Are you losing just that particular variable? - If so, then it is probably some part of your code that is doing this.

    If you are losing the entire session object, then unless your session has timed out, the other reason is that if you are using inproc session state at your server and ran out of memory - this recycles your worker process causing you to lose the session value. Check your event log to see if this is the case.

提交回复
热议问题