Example #1
0
 /// <summary>
 /// 登录
 /// </summary>
 /// <param name="hc"></param>
 /// <param name="client"></param>
 public static void SigIn(MemberPassPort client, HttpContext hc = null)
 {
     ReferSession(client, hc);
 }
Example #2
0
 /// <summary>
 /// 更新缓存
 /// </summary>
 /// <param name="client"></param>
 /// <param name="hc"></param>
 public static void ReferSession(MemberPassPort client, HttpContext hc = null)
 {
     if (hc == null) hc = HttpContext.Current;
     string clientJson = Global.JsSerialize.Serialize(client);
     hc.Session[MemberSessionKey] = clientJson;
 }