no need to log in again

Hi everyone.

From what I understand, after restarting the Traccar service on Ubuntu Server, all users are prompted for a password to access the Traccar Manager app. Is it possible to avoid requiring a new login and keep the credentials even after restarting the service?

Thank you very much.

Anton Tananaev8 days ago

Yes, you need to enable web.persistSession.

Track-trace2 days ago

Its actually great to be able to do modifications to the config and then restart a live server without users having to re-login.

I wonder though, are there any situations where using web.persistSession can have a drawback ?

Track-trace2 days ago

After asking AI i now understand that adding the below in the config as an option might be good.

<entry key='web.persistSession'>true</entry>
<entry key='web.sessionTimeout'>604800</entry>

It keeps the persistent session (so you can still restart the server without users needing to relogin).
But also adds a session timeout after seven days.

Good idear ?