Backendless Support
 
Answered

Does the UserService have a concept of a sessionToken?

I'd like to know if there is any way to login a previously logged in user without their username/password. For example, if they are logged in, and they kill the iOS App, then on a successive launch, they would have to re-login. I'd like to have this done automatically. I can do this by storing their user/pass into the keychain, but if there's a token I can use to religion, I'd rather store that than the user's username/password.

Leave a Comment

Comments (5)

photo
1

I would really like to see the answer to this. How do you use session objects, cookies and session timeouts?

photo
1

Hi James and Darel,

We just updated the docs with this information. Please see the following:

Hope this helps.

Regards,

Mark

photo
1

Mark,

Thanks for the clarification.

photo
1

You are welcome, Darel. I apologize it took so long. Btw, updates for ActionScript (Flash/Flex) and .NET are coming up - these 2 SDKs do not support the feature for saving login info yet.

Regards,

Mark

photo
1

Is there a better way to use this token to restore the Backendless.UserService.CurrentUser() ?

Currently, I am using Backendless.UserService.isValid(), if it returns true, but the current user is null, I am requesting the user using the user id (UserIdStorageFactory.instance.getStorage().get()) via Backendless.UserService.

This is using the Android SDK