I have created a web application that uses the Google+ Sign In API but have come across a problem with the automatic sign in behaviour.
I am not sure if I have implemented it correctly, here's the problem:
- User signs into my application using their Google+ Sign In details.
- Now they are signed into my app but also their Google account.
- When they are finished, they sign out of my app, but remain signed into Google.
- Now suppose a different user (using same machine/browser) visits my site, they are automatically signed in using the previous users details.
I understand that is bad practice and to avoid either a) signing the user out of their Google account when they leave my site or b) disabling the automatic behaviour of the Google+ Sign in.
So how can I prevent this behaviour?