Blazor server-side / how could i get event when browser or tab closed?

Solution for Blazor server-side / how could i get event when browser or tab closed?
is Given Below:

I have a question for event when browser or tab closed.

I made a project with login session and cookie.

For this, i want to clear session and cookie when i left the page.
I could do with methods when logout button clicked.

I use blazored localStorage NuGet-package.

Are there any C# Blazor event for browser closed?

or any suggestion? for what i tried to do?

Cheers!