/// <inheritdoc/> public void Delete() { if (_session == null) { return; } _sessionManager.Delete(_context, _session.Id); _session = null; }
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)); }