How to update asp net web forms or mvc application without session loss?

Here is my script. I publish my web forms or mvc application on iis 8 on a Windows 2012 server. Then my client requests something else and I need to update codebehind.

For example, a new input on a form or a new column on db. And I use session variables for membership or store processes.

When I copy a new bin file on the server (when I publish my application), the session dies. How can I solve this update problem? What should I do to keep the session alive? Because visitors lose their carts.

Thanks for the help.

+4
source share
2 answers

IIS :

  • ASP.NET .
  • web.config,

, , .

, " ", , ..

MSDN:

InProc, -. .

:

StateServer, , ASP.NET. , , - , , - -.

SQLServer SQL Server. , - , - -.

, .

, .

+3

bin , ( ), . ? ?

InProc. StateServer, SQLServer.

Windows Azure Redis Cache.

.

.

a > . cookie .

, , UserId , .

, amazon.com .

+3

Source: https://habr.com/ru/post/1625322/


All Articles