The client-side stores the SessionId as a cookie, including this sessionId cookie with each request. The server’s dictionary stores the session data using the SessionId as the key. The app stores user data in the session state, utilizing the store maintained by the app to retain the data across client requests.These methods enable the setup and management of session-related functionalities within the ASP.NET Core application. To configure the session, you need to call two methods in the startup class: the AddSession method and the ConfigureServices method.On the other hand, applications often prefer the Out-Proc session, which does not require linked sessions. In the case of In-Memory sessions, when hosting the application on a web farm, it necessitates linking each session to a specific server. Two sessions are available: In-Memory or In-Proc and Distributed or Out-Proc session.
0 Comments
Leave a Reply. |