0

I am working with Login with Google, I observed that Google Login form clears a LocalStorage, SessionStorage and session values. Is there any way I can keep this values? or any other ways to keep some values to use after login. I tried for Stackoverflow site too, gave me same result. I set some values and tried to get. I got the values

But when I clicked on Login with Google and tried, I get nothing. On Login with google form of same site

Prasad Gavande
  • 213
  • 1
  • 4
  • 19
  • Seems unlikely-- if I were to _guess_ I'd say it is done for security purposes. What exactly are you trying to do? – Alexander Nied Apr 05 '17 at 05:09
  • after login I want to jump to previous page url which I was storing on LocalStorage. Facebook login allows me to store value in LocalStorage. – Prasad Gavande Apr 05 '17 at 05:10
  • 1
    so the *Security is compromised* messages don't worry you at all/ – Jaromanda X Apr 05 '17 at 05:22
  • Is there any other way I can keep some values after login ? I tried PHP Sessions too but seems not working too. – Prasad Gavande Apr 05 '17 at 05:25
  • @anied any clue, what I can do? – Prasad Gavande Apr 05 '17 at 08:17
  • I'm not familiar with the Google login API-- If it is possible and Facebook is doing it then I'd recommend starting at the documentation. Perhaps they are leveraging [this](http://stackoverflow.com/questions/8067510/onclick-javascript-to-make-browser-go-back-to-previous-page) sort of programmatic Javascript history solution. Or perhaps there is a callback or value you can pass. Or you could try debugging Facebook's process. But keep security in mind. – Alexander Nied Apr 05 '17 at 12:24
  • @anied Thank you, I'll try this. – Prasad Gavande Apr 05 '17 at 12:26

0 Answers0