Clear session on logoff
This commit is contained in:
parent
012eb9a864
commit
540bcc7950
|
|
@ -437,6 +437,9 @@ namespace MusicStore.Controllers
|
|||
[ValidateAntiForgeryToken]
|
||||
public async Task<ActionResult> LogOff()
|
||||
{
|
||||
// clear all items from the cart
|
||||
Context.Session.Clear();
|
||||
|
||||
await SignInManager.SignOutAsync();
|
||||
|
||||
// TODO: Currently SignInManager.SignOut does not sign out OpenIdc and does not have a way to pass in a specific
|
||||
|
|
|
|||
Loading…
Reference in New Issue