To Access session variable in Handler File
using System;
using System.Web;
using System.Web.SessionState;
public class Handler : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest (HttpContext context)
{
context.Session.Add("SessionName", "SessionValue");
}
public bool IsReusable {
get {
return false;
}
}
}
No comments:
Post a Comment