콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1675 화면

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
1503
0
2월 22
3488
2
1월 22
3704
2
1월 22
4801
2
2월 20
14345