Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Using Session with a Web Handler File (ashx)

Modified: 2008/11/18 10:34 by Pieter Brinkman - Categorized as: ASP.NET, Csharp

If you use ASHX files and you want to the Session. You need to implement the folowing interfaces on the ASHX; IRequiresSessionState and IReadOnlySessionState. See example below.

public class Style : IHttpHandler, IRequiresSessionState, IReadOnlySessionState {} 

Source: blog.newguid.net

 © Evident Interactive BV