Losing session data in ASP.NET

前端 未结 9 2270
别那么骄傲
别那么骄傲 2021-01-05 16:46

I moved an ASP.NET site running on a server with .NET 1.1 to another server running with .NET 2.0.

In one of the pages I have the following code to detect an expired

9条回答
  •  抹茶落季
    2021-01-05 17:26

    I believe your session in the web.config is being reset (getting a new SessionID for each postback)

    You could try to debug this by putting the SessionID somewhere on the page (for testing) with

    HttpContext.Current.Session.SessionID
    

    This did happen on one of my websites and all i had to do was go into IIS and resave the SessionState Panel

提交回复
热议问题