I'm using the App Engine Users Service API in PHP. My app requires authentication. The authentication for logging in is working fine, but when I logout of my Gmail account my app still shows that the user is logged in.
How do I make sure that the app also gets logged out the moment the Gmail account is logged out?
<?php
use google\appengine\api\users\User;
use google\appengine\api\users\UserService;
$user = UserService::getCurrentUser();
if ($user)
{
#perform action
}
else
{
header('Location: ' . UserService::createLoginURL($_SERVER['REQUEST_URI']));
}