hwz / chirp

A teaching example of the MEAN stack, by building a simple Twitter clone
317 stars 484 forks source link

session problem #7

Closed jorgejavier closed 8 years ago

jorgejavier commented 8 years ago

Hi, first of all great tutorial!! I follow it but when my user logs in and I f5 the page it has to log again. Any suggestions? Thanks in advance.

piq9117 commented 8 years ago

I was just wondering about this. Did you figure it out?

jorgejavier commented 8 years ago

Yes I did, the problem was that I wasn't persisting the session, each time you refresh you lost all session data, cause it is javascript, so you need to use something like https://github.com/grevory/angular-local-storage to save it.