ASP.NET WebForms is still authenticated after singing out from Okta


I have been running some tests using this webforms guide:

and this sample project:

The problem I’m having is that, even if I have logged out from Okta, the sample application still shows me as authenticated.

My expectation is that, once I sign out from Okta, I should no longer be authenticated in the WebForms app, however, it still shows me as authenticated.

Not sure if I’m doing it wrong or if the sample code is wrong. I guess what’s needed here is to add some sort of check if the Okta session is still active.


Sorry for the delay! We recently published some new Web Forms samples:

Can you try those and see if you still experience the issue?

Hi Nate,

Sorry for not getting back sooner, I have been on leave.

I have been running some tests with this sample:

However, this issue persists.
I sign in using the login button in the sample application, and I can see that I’m authenticated as a “Profile” button appears.

After that, I go to Okta and sign out from there. When I now return to the sample application, I am still authenicated. It does not help to close the application, restart visual studio and the browser, I’m still authenticated. The only way to sign out, is to click the “Logout” button on the sample application.


I am having the same issue. Were you able to find a resolution?

I find that every issue with Okta is difficult to track down due to lack of support/working documentation.