/// <summary> /// deletes the registration of the current user. /// </summary> public void LogoutUser() { if (KnownUser) { SessionContainer.ForceGetNextSSID(UserName); Ssid = ""; if (SessionContainer.SessionIdTransmissionType == SessionContainer.ESessionIdTransmissionType.Cookie) { SetCookies.Add(new KeyValuePair <string, string>("ssid", "")); } } }
/// <summary> /// _FORCES_ to get a new SSID for the current user if needed for higher level security (call before building the site) /// </summary> /// <returns>the new ssid</returns> public string ForceGetNextSsid() { if (!KnownUser) { throw new Exception("The current user is unknown. Please check for SessionData.knownUser before calling this method."); } Ssid = SessionContainer.ForceGetNextSSID(UserName); if (SessionContainer.SessionIdTransmissionType == SessionContainer.ESessionIdTransmissionType.Cookie) { SetCookies.Add(new KeyValuePair <string, string>("ssid", Ssid)); } return(Ssid); }