【发布时间】:2009-06-29 14:18:10
【问题描述】:
我是 trying to store some values in the Session from a Handler page,在我重定向到 WebForms 页面之前,它将获取 Session 值并预填充 WebForm:
public class Handler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
...
context.Session["StackOverflow"] = "overflowing";
context.Response.Redirect("~/AnotherPage.aspx");
...
}
...
}
除了context.Session 对象为空。
如何从处理程序访问会话状态?
【问题讨论】:
标签: asp.net session session-state handler ihttphandler