/// <summary> /// Deletes the given session object. /// </summary> /// <param name="server">The server.</param> /// <param name="session">The session info.</param> /// <returns></returns> public static void DeleteSession(this WebServer server, SessionInfo session) { server.SessionModule?.DeleteSession(session); }
/// <summary> /// Deletes the given session object. /// </summary> /// <param name="context">The context.</param> /// <param name="session">The session info.</param> public static void DeleteSession(this IHttpContext context, SessionInfo session) { context.WebServer.SessionModule?.DeleteSession(session); }