示例#1
0
        /// <inheritdoc/>
        public void Delete()
        {
            if (_session == null)
            {
                return;
            }

            _sessionManager.Delete(_context, _session.Id);
            _session = null;
        }
示例#2
0
        protected void CreateNewSession(RiotUser riotUser)
        {
            if (mSession != null)
            {
                mSessionManager.Delete(mSession.SessionId);
            }

            mSession = mSessionManager.Create(Guid.NewGuid(), riotUser);

            Response.Cookies.Append(SessionIdCookieName, mSession.SessionId.ToString());
        }
 public bool DisConnect(string token)
 {
     return(sessionManager.Delete(token));
 }