Generic handler dosyasında session değerini kullanmak isterseniz

using System.Web.SessionState;
public class MyHandler: IHttpHandler,IRequiresSessionState {

public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";

string sessionValue = Convert.ToString(HttpContext.Current.Session["LoginUser"]);
}
}

Yorumlar

Bu blogdaki popüler yayınlar

Haproxy ve arkada 2 nginx server yönlendirme

Visual Studio'da proje listesinden gereksiz proje isimlerini silmek isterseniz