Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys,

I have asp.net web site in c#.

and this web site is login using google account.

I successfully login into the application using google account.

But not getting logout.

I mean, once i logged in, its keeping me logged in always.

Can any one plz help me.

Ref: www.aspsnippets.com/Articles/Login-with-Google-Account-API-in-ASPNet-and-get-Google-Plus-Profile-details.aspx[^]

Thanks
Posted
Comments
Arkadeep De 30-Jun-15 3:32am    
logout from your google account, it will be automatically logged out.
Aditya Chauhan 30-Jun-15 3:48am    
I think you want to login from Google and then logout
but not from the solution?
i am right ?
abdul subhan mohammed 30-Jun-15 4:42am    
ya, i tried from the above ref but getting error.
Value cannot be null. Parameter name: url
Aditya Chauhan 2-Jul-15 3:10am    
Store The Value in the Session Which you get from Google Accounts
then If you logout you gmail account then it is not effect your website Login.

1 solution

C#
Response.Redirect("https://www.google.com/accounts/Logout");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900