This is a migrated thread and some comments may be shown as answers.

Session Management

1 Answer 168 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
developer4
Top achievements
Rank 1
developer4 asked on 19 Feb 2014, 09:21 AM
Hi There

In the Icenium Hybrid app we have a requirement like we need to keep the logged in user's session active for about 8 hours and then log-out automatically.
The app is connecting to the Servicestack REST services which also handles sessions at the server side.

How do we handle the session management on the device as well as server side?. any examples are highly appreciated.

Thank you
Xyler

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Feb 2014, 09:30 AM
Hello Xyler,

If we understand correctly, your users authenticate in your application with session/cookies. So basically you can save the cookies in the local storage. When application gets restarted, you'll read them from the local storage and set the cookies when making ajax calls. In short the workflow is:
  1. Read the session cookies upon successful login.
  2. Save them to local storage.
  3. Set the cookies when making requests to your server.

Another option might be to use a custom Cordova plugin to handle the cookies, see this thread.

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Tags
AppBuilder Windows client
Asked by
developer4
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or