| 12345678910111213141516171819202122232425262728293031 |
- <%@ WebHandler Language="C#" Class="sessionget" %>
- using System;
- using System.Web;
- using System.Web.Security;
- using System.Web.SessionState;
- using System.Collections.Generic;
- using System.Data;
- using Curtain.DataAccess;
- using DK.XuWei.WebMes;
- public class sessionget : IHttpHandler, IReadOnlySessionState
- {
- public void ProcessRequest(HttpContext context)
- {
- DataTable dt = mes.SessionGet();
- if (dt.Rows.Count > 0)
- context.Response.Write(new JsonResult(mes.SessionGet()).ToJson());
- else
- context.Response.Write(new JsonResult(JsonStatus.loginError).ToJson());
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
|