session variables lost for some reason

后端 未结 5 673
说谎
说谎 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:28

    Check out whether you are using Application Pool which is shared across multiple web sites/applications, if you are sharing the same AppPool with an other web application/site - switch to separate AppPool.

    The best way is to use server-based session state, in this case you can forget about such issues. See HOW TO: Configure SQL Server to Store ASP.NET Session State

提交回复
热议问题