# IE11 Widget doesn't set session

**URL:** <https://devforum.okta.com/t/ie11-widget-doesnt-set-session/2272>\
**Category:** Questions\
**Created:** [July 27, 2018, 6:18pm UTC](https://devforum.okta.com/t/ie11-widget-doesnt-set-session/2272 "2018-07-27T18:18:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcrain](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jcrain](https://devforum.okta.com/u/jcrain)\
**Post date:** [July 27, 2018, 6:18pm UTC](https://devforum.okta.com/t/ie11-widget-doesnt-set-session/2272/1 "2018-07-27T18:18:55Z")

</div>

My application currently uses the widget to log the user in, and then we display the Okta iFrame so the user can view all of the applications that they have access to. In IE11, if a user signs in and then clicks on one of the applications, they are prompted with an Okta login screen. This doesn’t happen with any other browser I’ve tested, just IE11.

Current setup:

```
let okta = new OktaSignIn({
            baseUrl: "someUrl",
            clientId: this.get('clientId'),
            redirectUri: this.get('redirectUri'),
            authParams: {
                issuer: "OktaUrl",
                responseType: ['token', 'id_token'],
                scopes: ['openid', 'email', 'profile', 'phone']
            },
            features: {
                rememberMe: true
            }
        });

okta.session.get(function(response) {
            if (response.status === "ACTIVE")
            {
                // user already logged into Okta elsewhere
            }
            else {
                okta.renderEl(
                    { el: '#' + context.get('containerId') },
                    function(res) {
                        // get additional user info
                            okta.remove();
                        });
                    },
                    function (err) {
                        console.log(err);
                        okta.remove();
                    }
                );
            }
        });

```

I came across this issue to help possibly resolve the issue: [https://github.com/okta/okta-signin-widget/issues/396](https://github.com/okta/okta-signin-widget/issues/396)

Using setCookieAndRedirect also doesn’t seem to work and gets the user stuck in an infinite login loop, which also only occurs in IE11. In that sceario it doesn’t seem like it ever fully logs the user in, since the okta.session.get() returns an inactive session even though they just logged in (again, only IE11).

Currently using 2.10.0 for the Widget.

---

<div class="post-metadata">

**Author:** ![jcrain](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jcrain](https://devforum.okta.com/u/jcrain)\
**Post date:** [August 3, 2018, 4:36pm UTC](https://devforum.okta.com/t/ie11-widget-doesnt-set-session/2272/2 "2018-08-03T16:36:09Z")

</div>

Resolved using this issue [Can't get session with the Widget or JS Auth SDK on IE11](https://devforum.okta.com/t/cant-get-session-with-the-widget-or-js-auth-sdk-on-ie11/135)

Just had to add Okta to trusted sites

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 7:18pm UTC](https://devforum.okta.com/t/ie11-widget-doesnt-set-session/2272/3 "2024-01-17T19:18:23Z")

</div>

Closed on January 17, 2024, 7:18pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
