using System.Web.SessionState;
public class Handler2 : IHttpHandler, IReadOnlySessionState{
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
context.Session.Add("XXX", 104);
context.Response.Write(context.Session["XXX"]);
}
public bool IsReusable {
get {
return false;
}
}
}
沒有留言:
張貼留言