# APM - Close Browser

**URL:** <https://community.f5.com/t/apm-close-browser/75210>\
**Category:** Technical Forums\
**Tags:** security, application-delivery\
**Created:** [September 30, 2024, 6:00pm UTC](https://community.f5.com/t/apm-close-browser/75210 "2024-09-30T18:00:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulooliveira](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@paulooliveira](https://community.f5.com/u/paulooliveira)\
**Post date:** [September 30, 2024, 6:00pm UTC](https://community.f5.com/t/apm-close-browser/75210/1 "2024-09-30T18:00:52Z")

</div>

Hello,

I have APM configured and working correctly for SSO with PEOPLESOFT.

But due to a request from the CISO, I need the browser to be closed every time the user logs out.

Is it possible to do this in APM or irule?

Regards

Paulo

---

<div class="post-metadata">

**Author:** ![Lucas\_Thompson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/lucas_thompson/32/19403_2.png) [@Lucas\_Thompson](https://community.f5.com/u/Lucas_Thompson)\
**Post date:** [October 1, 2024, 12:03am UTC](https://community.f5.com/t/apm-close-browser/75210/2 "2024-10-01T00:03:43Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![paulooliveira](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@paulooliveira](https://community.f5.com/u/paulooliveira)\
**Post date:** [October 1, 2024, 5:06pm UTC](https://community.f5.com/t/apm-close-browser/75210/3 "2024-10-01T17:06:30Z")

</div>

Hi Lucas,

Thank you very much!!!

Regards
