protected override void AfterMigration(MigrationRunner sender, MigrationEventArgs e) { if (HttpContext.Current == null) { return; } var http = new HttpContextWrapper(HttpContext.Current); http.ExpireCookie(AngularAntiForgeryHelper.AngularCookieName); http.ExpireCookie(AngularAntiForgeryHelper.CsrfValidationCookieName); }
public void Migrate() { if (HttpContext.Current == null) { return; } var http = new HttpContextWrapper(HttpContext.Current); http.ExpireCookie(AngularAntiForgeryHelper.AngularCookieName); http.ExpireCookie(AngularAntiForgeryHelper.CsrfValidationCookieName); }
public void Execute(string name, IScope scope, SemVersion originVersion, SemVersion targetVersion, ILogger logger) { if (name != Constants.System.UmbracoUpgradePlanName) { return; } if (HttpContext.Current == null) { return; } var http = new HttpContextWrapper(HttpContext.Current); http.ExpireCookie(AngularAntiForgeryHelper.AngularCookieName); http.ExpireCookie(AngularAntiForgeryHelper.CsrfValidationCookieName); }