# Clearing Okta session idx cookie (OIE) on the browser tab close

**URL:** <https://devforum.okta.com/t/clearing-okta-session-idx-cookie-oie-on-the-browser-tab-close/25222>\
**Category:** Questions\
**Tags:** widget, reactjs\
**Created:** [September 4, 2023, 3:20pm UTC](https://devforum.okta.com/t/clearing-okta-session-idx-cookie-oie-on-the-browser-tab-close/25222 "2023-09-04T15:20:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pream](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Pream](https://devforum.okta.com/u/Pream)\
**Post date:** [September 4, 2023, 3:20pm UTC](https://devforum.okta.com/t/clearing-okta-session-idx-cookie-oie-on-the-browser-tab-close/25222/1 "2023-09-04T15:20:33Z")

</div>

Hi,

Currently Im using React SPA OIDC Okta sign-in widget 7.9.1 with OIE , whenever the user closes the browser tab without logging out and try to open the app in new tab it directly takes user to home screen, is there a way to take user to sign-in screen instead of logging in directly. Earlier with Classic engine setting token manager as session storage worked, but with OIE thats not working.

Thanks,  
Pream Kumar

---

<div class="post-metadata">

**Author:** ![Pream](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Pream](https://devforum.okta.com/u/Pream)\
**Post date:** [September 5, 2023, 2:21pm UTC](https://devforum.okta.com/t/clearing-okta-session-idx-cookie-oie-on-the-browser-tab-close/25222/2 "2023-09-05T14:21:01Z")

</div>

Hi Team,

Any update on this , we have some urgent requirement on the above part.

Thanks,  
Pream Kumar

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 11:42pm UTC](https://devforum.okta.com/t/clearing-okta-session-idx-cookie-oie-on-the-browser-tab-close/25222/3 "2024-02-15T23:42:00Z")

</div>

Closed on February 15, 2024, 11:42pm UTC


