sql-session-state

How does SQL Server session state persistence work?

随声附和 提交于 2020-01-07 04:46:05
问题 I'm not a fan of using ASP.NET session state, but our application is using it at this time. We are using SQL Server mode for session state persistence. I'm considering caching authorization check results in the session state, but I worry about the performance of this approach. How exactly does SQL Server session state persistence work in .NET? From what I can tell, all session data is stored in one database row, with the data itself stored in one column. My worry is that if our application

How to get the session details in servicestack application from SQLServer using session id sent from mvc application?

廉价感情. 提交于 2019-12-24 12:24:21
问题 I have two applications deployed on different servers. 1) ASP.net MVC 4 web application with sessionState mode="SQLServer" for session management 2) Servicestack service application with sessionState mode="SQLServer" for session management ( yes i need session in service application ) both application share same database and tables for session management I am using following solution to have asp.net session in service stack application . Reconnecting to Servicestack session in an asp.net MVC4

Losing Session State with ASP.NET/SQL Server

孤者浪人 提交于 2019-11-26 15:49:03
问题 I have a ASP.NET MVC workflow configured as two websites managed by a load balancer. The websites use Sql Server as the session state provider and have authentication switch off (its not required). Now, sporadically I appear to be losing session state, and I believe this is because the request is being handled by the alternative server, so essentially the user is jumping from server to server, depending how the load balancer sees fit. I am not always "losing session state" at the same stage