求解..................................
public class yourclassname: IHttpHandler,System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest (HttpContext context) {
if (context.Session["ok"] == null){
context.Response.Write("已經超時!");context.Response.End();
}
}