コード例 #1
0
 /// <summary>
 /// Removes the session from the context.
 /// </summary>
 /// <param name="session">The session to remove</param>
 public void RemoveSession(AbstractSession session)
 {
     HttpContext.Current.Session.Remove(session.Name);
 }
コード例 #2
0
 /// <summary>
 /// Adds the session to the Context.
 /// </summary>
 /// <param name="session">The session to add</param>
 public void AddSession(AbstractSession session)
 {
     HttpContext.Current.Session.Add(session.Name, session);
 }