update tab closing/cookie delete (#19668)

* update tab closing/cookie delete

* Update aspnetcore/security/authentication/cookie.md

Co-authored-by: Chris Ross <Tratcher@Outlook.com>

Co-authored-by: Chris Ross <Tratcher@Outlook.com>
pull/19675/head
Rick Anderson 2020-08-26 11:31:35 -10:00 committed by GitHub
parent 5022d32293
commit ef35750db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ To sign out the current user and delete their cookie, call <xref:Microsoft.AspNe
If `CookieAuthenticationDefaults.AuthenticationScheme` (or "Cookies") isn't used as the scheme (for example, "ContosoCookie"), supply the scheme used when configuring the authentication provider. Otherwise, the default scheme is used.
The server has no control of the clients browser. If the user closes the browser or tab, the server cannot sign out the user. To implement signing out the user when the browser is closed, you must detect that with JavaScript. Search for "How to Detect Browser Window Tab Close Event?".
When the browser closes it automatically deletes session based cookies (non-persistent cookies), but no cookies are cleared when an individual tab is closed. The server is not notified of tab or browser close events.
## React to back-end changes