<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008jWMFXCA4Okta Classic EngineSingle Sign-OnAnswered2024-03-25T15:27:53.000Z2023-02-03T16:12:49.000Z2023-02-03T22:58:44.000Z

mi2cc (mi2cc) asked a question.

Web App using SSO - Checking if user still has an Okta Session

Hi,

Beginner here, I had hard time to adapt Okta SSO to my needs, reading the documentation, got kinda overwelmed by the amount of informations. So, i'm sorry if I missed the information, if you can point me in the right direction, i would be grateful.

But, I somehow, managed to make it work. (Yeee).

 

So I made a php application, which only authenticate a user with Okta, and build a Php Session after the return call.

During my development, I got an issue with checking if user is still logged in in Okta, I read a lot, and tried a lot of things, but, the conclusion was that it's not something I can do with php, and that i should rely on php session timeout, and force user to re-authenticate everytime session is destroyed.

 

I'm still unsure about this conclusion, can someone tell me if I am wrong, if there is a way to check if Okta user still has a session, with php? (I could do it with an ajax request with session/me but not with Curl, and for my application that would be worse to use ajax in that way actually)

Maybe I got everything wrong, ...

Hope someone can help me. Thank you.


This question is closed.
Loading
Web App using SSO - Checking if user still has an Okta Session