Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

User session time out

Hi Support,

How long does a user session timeout in Appery?
Is there a way to check whether user session is timed out?

My app needs a user to stay online (logged in) in order to use, I need to check if user session is timed out from time to time.

Thanks

Dongzhi

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

User session time out

Hello,

Please follow this topic: https://getsatisfaction.com/apperyio/...

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

User session time out

Hi Sergiy,

Thanks. This does show a way to check if a session has timed-out. I can use it.

But it doesn't seem to show how long a session timed-out. Is it 120 minutes?
Can I change the timeout settings on server?

Thanks

Dongzhi

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

User session time out

Hi Sergiy,

I have found the answers in the link as below: thanks!
Tokens issued by a server have a 120 minutes lifetime after the last activity. Last activity in this case means any REST service (even those that don’t contain an X-Appery-Session-Token) that triggers a database for any kind of operation – read, update, delete, etc. This also includes any REST service that triggers server code scripts secured by the database. Once the token has expired, the user should log in again to obtain a new sessionToken. Currently, there is no way to change the sessionToken lifetime, though that option may exist in the future.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

User session time out

Yes, that's right!

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

User session time out

Thanks!

Return to “Issues”