コード例 #1
0
        public ReleaseSessionResponse ReleaseSession(ReleaseSessionRequest request)
        {
            string        userName  = request.Session.User;
            string        sessionId = request.Session.SessionID;
            SimpleSession session   = sessions.Find(s => s.SessionId == sessionId) ??
                                      sessions.Find(s => s.UserName == userName);

            if (session != null)
            {
                session.Logout();
                if (!session.IsValid())
                {
                    sessions.Remove(session);
                }
            }
            return(new ReleaseSessionResponse());
        }
コード例 #2
0
 public ReleaseSessionResponse ReleaseSession(ReleaseSessionRequest request)
 {
     return(Create().ReleaseSession(request));
 }