sessionget.ashx 724 B

12345678910111213141516171819202122232425262728293031
  1. <%@ WebHandler Language="C#" Class="sessionget" %>
  2. using System;
  3. using System.Web;
  4. using System.Web.Security;
  5. using System.Web.SessionState;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using Curtain.DataAccess;
  9. using DK.XuWei.WebMes;
  10. public class sessionget : IHttpHandler, IReadOnlySessionState
  11. {
  12. public void ProcessRequest(HttpContext context)
  13. {
  14. DataTable dt = mes.SessionGet();
  15. if (dt.Rows.Count > 0)
  16. context.Response.Write(new JsonResult(mes.SessionGet()).ToJson());
  17. else
  18. context.Response.Write(new JsonResult(JsonStatus.loginError).ToJson());
  19. }
  20. public bool IsReusable
  21. {
  22. get
  23. {
  24. return false;
  25. }
  26. }
  27. }