Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1324 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả Câu trả lời hay nhất

Found out that caused by the param -i base

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1231
0
thg 2 22
3228
2
thg 1 22
3406
2
thg 1 22
4530
2
thg 2 20
14041