Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
1330 Näkymät

I am developing with odoo18, and the session always expires after every single time I restart the project. It bothers me a lot, cause I have to login after restarting every time.

Is there any possible way to solve it?

Thanks.

Avatar
Hylkää
Paras vastaus

The issue occurs because Odoo stores sessions in memory or temporary files, which are lost when the server restarts. To resolve this, you can configure Odoo to store sessions in the database by adding session_store = db in your odoo.conf file. Additionally, increasing the session expiration time with session_gc_time = 2592000 (30 days) can prevent frequent logouts. If you're using a restart script, you can also include an SQL command to update the session expiration date after each restart, ensuring that active sessions remain valid

Avatar
Hylkää
Tekijä

Thanks for your reply Anas, let me give it a try.

Tekijä Paras vastaus

Found out that caused by the param -i base

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 25
1233
0
helmik. 22
3228
2
tammik. 22
3409
2
tammik. 22
4532
2
helmik. 20
14045