Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- Write to file from multiple threads async with C# and .NET Core
- Run tasks in parallel using .NET Core, C# and async coding
- Build .net core 6 projects with Azure Devops using yml files
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
Archive
Meta
Tag Archives: Session state
Sitecore high CPU usage – is the SQL Session State Provider the villain?
My massive Sitecore 9.1 installation started having CPU spikes, even when the servers did not seem to receive more requests. When CPU spiked, I could see that the requests queue would build up, until it crashed with the following error: … Continue reading
Posted in Sitecore 7, Sitecore 8, Sitecore 9
Tagged Performance, Session state, Sitecore, SQL
Leave a comment
Your session ID is being reused and there is nothing you can do about it
In many years we have been used to the fact that the ASP.Net session ID uniquely identifies one session, and one session only. Back in 2006, Margaret Rouse from TechTarget even wrote in the definition of a session ID that: … Continue reading
.NET Session state is not thread safe
When working with the .NET session state you should bear in mind that the HttpContext.Current.Session cannot be transferred to another thread. Imagine that you, from the Global.asax would like to read the SessionID each time a session is started: To … Continue reading
Posted in .net, c#, General .NET
Tagged .NET 4.5, global.asax, HttpContext, QueueUserWorkItem, session, Session state, ThreadPool
Leave a comment
Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode
When switching the sessionState mode of your web project from InProc to SQLServer you might encounter this error: Exception: System.Web.HttpException Message: Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize the session state objects, and … Continue reading
Posted in c#, General .NET, Sitecore
Tagged InProc, Serializable, Serialization, SerializationException, Session state, Sitecore, SQLServer
2 Comments