コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1305 ビュー

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.

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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

著作者 最善の回答

Found out that caused by the param -i base

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 25
1227
0
2月 22
3223
2
1月 22
3376
2
1月 22
4520
2
2月 20
14034