SSO silent authentication PHP

Hi folks,

I am using Auth0 with SSO and it works fine for my SPAs. Recently I needed to add PHP application to have common SSO with other apps so I used https://github.com/auth0-samples/auth0-php-web-app/tree/master/00-Starter-Seed and it works well,

however if I authenticate in PHP app, my other apps pick up that login silently via SSO, but it does not work in another direction (if I login in my other apps, PHP still see this user as not logged in).

I believe this is because PHP demo app does not check remote session.

Could you please advise how I can add SSO login for PHP demo app?

Appreciate,
Ruslan

PS I am complete noob in PHP, please provide copy-paste code if possible. I also think it would be great to amend auth0 php demo to cover SSO login scenario.

@konrad.sopala could you help?