Losing session data in ASP.NET

前端 未结 9 2328
别那么骄傲
别那么骄傲 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条回答
  •  Happy的楠姐
    2021-01-05 17:26

    I was facing the same issue and tried every option mentioned in the above answers. Finally found that the issue was that we had marked session cookie as secure in our project but were running it with http If the server has not been setup for SSL and you try to mark the cookie secure, a new session will be generated for each request. So finally enabling back https fixed it for me.

提交回复
热议问题