0
omkarchoudhari created
- How to get browser close event (window unload or onbeforeunload) ?
- can we have configurable session timeouts ?
I am using ASP.NET zero version v6.1.0 & Angular (Single Solution) + .NET CORE 2.1
Looking forward to an urgent reply please. Thanks.
1 Answer(s)
-
0
Hi @omkarchoudhari
- This is related to Angular rather than AspNet Zero. I think you can use somethin like this;
`export class AppComponent { @HostListener('window:unload', [ '$event' ]) unloadHandler(event) { // ... }
@HostListener('window:beforeunload', [ '$event' ]) beforeUnloadHander(event) { // ... } }`
- Angular app uses token based auth, not session. So, you can play with the lifetime of the token.
- You can do it in ConfigureTokenAuth method of AbpZeroTemplateWebCoreModule.cs