Page 1 of 1

User session time out

Posted: Sat Jun 27, 2015 6:38 am
by Dongzhi Yang7528784

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


User session time out

Posted: Sat Jun 27, 2015 11:03 am
by Serhii Kulibaba

Hello,

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


User session time out

Posted: Sat Jun 27, 2015 1:52 pm
by Dongzhi Yang7528784

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


User session time out

Posted: Sat Jun 27, 2015 2:31 pm
by Dongzhi Yang7528784

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.


User session time out

Posted: Sat Jun 27, 2015 4:28 pm
by Illya Stepanov

Yes, that's right!


User session time out

Posted: Sun Jun 28, 2015 4:30 am
by Dongzhi Yang7528784

Thanks!