Tag Archives: HttpContext

.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 , , , , , , | Leave a comment

Add and Remove cookies

Creating cookies is no problem: But have you ever tried to remove a cookie, but nothing happens? It seemes that the “Remove” have no effect: Setting a cookie is a dialog between the client and server. Adding a cookie is done … Continue reading

Posted in General .NET | Tagged , , | 4 Comments