#1 2020-01-25 16:37:21

Mane
Member
Registered: 2017-02-20
Posts: 15

Keep session from expiring

Hello folks,

I'm developing a SPA web application with mORMot in the backend base on TSQLRestServerFullMemory, an so far everything is going nicely.

However, I couldn't find a way to keep the session from expiring.. I've looked into TServiceFactoryServer.SetTimeoutSec but it seems like this is not way to do it.

What I would like to achieve is, once a user is properly authenticated, he can sent a request to server, regarles of the time of inactivity it mighty lapsed from the last request, and have it served. (Much like Gmail).

Is this possible?

Regards,
Mane

Offline

#2 2020-01-25 23:23:00

xalo
Member
Registered: 2016-09-22
Posts: 32

Re: Keep session from expiring

This behavior is controlled by SessionTimeout  per sessión established in TSQLAuthGroup as documented here

Even you can react to an authentication error through as documented here

Offline

#3 2020-01-26 18:55:00

Mane
Member
Registered: 2017-02-20
Posts: 15

Re: Keep session from expiring

Thank you very much Xalo, I'll dive in.

Regards,
Mane

Offline

Board footer

Powered by FluxBB