Forum Discussion
APM - Close Browser
- Oct 01, 2024
It would be nice, but browsers don't allow javascript to do that unless the same javascript opened the page in the first place.
See this discussion:
https://stackoverflow.com/questions/42349487/how-to-close-active-tab-with-javascript
The ordinary workaround is to 302 redirect or .location() them to a page that:
1- Clears (resets to an invalid value or sets it to expire, usually do both) their cookies and/or any session storage.
2- Shows them a "you are safely logged out, please close your browser now" message.
Hi Lucas,
Thank you very much!!!!
Regards
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com