Read or Write Session value on HTTP Handler file (.ashx)

  Uncategorized
<%@ WebHandler Language="C#" Class="Handler" %>

using System;
using System.Web;
using System.Web.SessionState; 

public class Handler : IHttpHandler , IReadOnlySessionState  , IRequiresSessionState   {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        context.Response.Write("Hello World");
    }

    public bool IsReusable {
        get {
            return false;
        }
    }

}

 

150 thoughts on - Read or Write Session value on HTTP Handler file (.ashx)

LEAVE A COMMENT