I am able to login withcustomized google login button and also getting user details like email and name etc.
My issue is how to maintain the loggin session after login ? Means if I once login it shoud display the user details after refresh the page also untill I am logged out.
I am able to login withcustomized google login button and also getting user details like email and name etc. But my issue is how to maintain the loggin session after login ? Means if i once login it shoud display the user details after refresh
the page also untill i am logged out. how can i achieve this ?
The common approach is creating an Authentication Cookie after a successful authentication.
I recommend going through the following tutorial which illustrates exactly what you're asking.
Member
2 Points
10 Posts
Regarding login with google customized login button
Apr 04, 2019 11:12 AM|lokesh0443|LINK
I am able to login with customized google login button and also getting user details like email and name etc.
My issue is how to maintain the loggin session after login ? Means if I once login it shoud display the user details after refresh the page also untill I am logged out.
How can I achieve this?
All-Star
43741 Points
18724 Posts
Re: Regarding login with google customized login button
Apr 04, 2019 11:20 AM|mgebhard|LINK
The common approach is creating an Authentication Cookie after a successful authentication.
I recommend going through the following tutorial which illustrates exactly what you're asking.
https://docs.microsoft.com/en-us/aspnet/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on