ACS - session length

You must Login before you can answer or comment on any questions.

-Titanium 3.0 -iOS SDK 6.0 -Cloud 2.3.0 -Mac 10.8.2

Using Cloud 2.3.0, how long does a logged in user session last for...?

This is assuming I am storing storing and resetting the sessionid as required.

— asked 9 months ago by Keith Tucci
3 Comments
  • Ti SDK 2.1.3

    — commented 9 months ago by Keith Tucci

  • Did you get the answer? I have that same question, and also, can session length be configurable in MyApps?

    — commented 8 months ago by Edmir Polovina

  • I have a similar issue, everytime the App closes, it looses the session.

    — commented 5 months ago by Joseph Sacha

2 Answers

No answer, but I seem to have it working now by using the following.

//Set user on login
exports.storeUser = function(_user) {
    Ti.App.Properties.setString('session_id', Cloud.sessionId);
    Ti.App.Properties.setString('user_id', _user.id);
    Ti.App.Properties.setString('username', _user.username);
};
 
//To get
var session_id = Ti.App.Properties.getString('session_id');

Right now ACS does not expire sessions. However, this could change in the future and be configurable by the developer.

Your Answer

Think you can help? Login to answer this question!