User login session doesn't persist after redirect


I’m using the js sdk and my scenario is login page -> redirects to main page.
In the main page I’m trying to get the current user and get undefined or null depending on the method I use.
Backendless.UserService.getCurrentUser(); or
Backendless.LocalCache.get(“current-user”). I use persistent login. I currently work with localhost and bower when developing.
Can you please advice?

Hi Sharon,

how long ago have you updated the SDK? This bug was fixed a few weeks ago, so maybe you have just old version of SDK.