私は現在、新しい ASPNET ID と Owin 認証を研究しているので、自分用にカスタマイズできます。デフォルトの MVC 5 アプリケーションを作成したところ、このコードに出くわしました
private async Task SignInAsync(ApplicationUser user, bool isPersistent)
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie); /// WHY??
var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
}
質問
外部 Cookie を残すことによるセキュリティ上のリスクはありますか?