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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
maj 25
|
1978 | |||
|
0
lut 22
|
3886 | |||
|
One user with more than one session active
Rozwiązane
|
2
sty 22
|
4254 | ||
|
2
sty 22
|
5271 | |||
|
Button that trigger logout
Rozwiązane
|
2
lut 20
|
14784 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.