Does an IIS worker process clear session variables when it recycles?
-
01-07-2019 - |
Question
We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles?
Solution
If session is stored in-proc then YES worker process recycle will remove it. Use Out-of-proc model or sql server to store session value if you want to keep it stored.
OTHER TIPS
If you are using the default in-memory session management, the session variables will be cleared when worker process recycles
yes, unless you are using out of process session state.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow