C # web application users log out without any reason

I have an application that was developed and installed on the server. Then we needed to install the same application on another web server, starting with the migration, we began to find several problems.

Currently, application users get logged out without any reason (no errors, only logout). This is Web.config , I also set sessionState timeout = "1800", but after 2 minutes of inactivity I was kicked out.

I cannot debug it on the server, because the service provider does not have debugging tools, moreover, I am not a .net developer, and I can not find any solution. Looking at the microsoft documentation, I did not find anything, the log does not report errors or memory limitations.

What can I do? I can give you everything you need to understand or help me find a solution to this problem, just ask me.

Thank!

+3
source share
2 answers

There are two things you can do to solve this problem. Well, only if (you have authentication of your form and other properties are set correctly).

  • Create a machine key in the web.config file.
  • Change the application pool process timeout to a higher limit. By default its 20 minutes.

20 , . cookie . , , , cookie.

+1

web.config SessionID, cookie. -, - cookie ASP.NET_SessionID. , , cookie .

web.config, , , ASP.net. , .

<authentication mode="Forms">
   <forms name="appname" defaultUrl="Default.aspx" loginUrl="Login.aspx" 
       protection="All" path="/" timeout="480" slidingExpiration="true"/>
</authentication>

Windows | Forms | Passport | None. . , IIS.

0

All Articles