JS: User login session expires

I registered a user and signed in to the app from my web app. But after leaving it idle for sometime (about 12 hrs), I performed the same DB operation again, and I got an error that no session token is available. Should I login the user everytime before doing this?

Hi Abhishek,

Please see the “stayLoggedIn” argument for the login method here:
http://backendless.com/documentation/users/js/users_login.htm

Regards,
Mark

Thanks!

Checking it right now.

How long will the user stay authenticated for after logging in with stayLoggedIn = true?

I’ve had some issues with accounts being logged out after a few days. I want it to work such that once people are logged in they stay logged in indefinitely.