uenala / project_spa_bergauf

CAS-FEE 2015, Group 10, 2nd Project
GNU General Public License v2.0
0 stars 0 forks source link

Login: after a page reload authenticated users get logged out #47

Closed RAeschimann closed 8 years ago

uenala commented 8 years ago

It might seem like they are logged out, but actually users are still logged in technically (see globals cookie) after a page reload. I suspect the problem is located somewhere in the logged-in-check in index.html.

uenala commented 8 years ago

The "problem" was a known behaviour of $rootScope, values in $rootScope are cleared during page-refresh. Solution: read back "globals" cookie-value and re-set values in $rootScope.