How to detect user already logged out from Google

2019-03-04 02:50发布

I don't have problem to have Google authentication login module added to my GAE website.

web.xml:

<security-constraint> 
  <web-resource-collection> 
    <web-resource-name>All Access</web-resource-name> 
    <url-pattern>/*</url-pattern> 
  </web-resource-collection> 
  <auth-constraint> 
    <role-name>*</role-name> 
  </auth-constraint> 
</security-constraint> 

But then when I sign out from Google, my web client still holds the cookie name with "SACSID" which thinks my Google account still valid. How to overcome such issue???

1条回答
叛逆
2楼-- · 2019-03-04 03:50

Provide a sign out link in your app. A user signing out of their Google account only affects first-party services; your users have to sign out separately from your app.

查看更多
登录 后发表回答