How can I change the cookie validity date for the Odoo session? It is a security risk. We have to reduce it. Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
by default odoo. set 90 days validity for session_id and it's incremental if you ever access odoo within 90 days it will extend its validity from access day/date
you can change validity from here
https://github.com/odoo/odoo/blob/13.0/odoo/http.py#L1400 => 90 days = 90 * 24 * 60 * 60 seconds
It's not a security risk as far as your physical device secure and no one can steal your session_id from your browser
Note: odoo don't track all the login devices so in case of a stolen physical device you can not log out from that device.
Hi Ravi, Thanks for your answer.
We are using the MS Active Directory (AD) password verification and our security concern is because we do not see Odoo to be querying AD every time a user logs in.
How often is the password verified against AD?
What happens if a session is open in Odoo for many days (because the session is still valid in the cookies) and the user is blocked or deleted from AD?
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
mars 15
|
6523 | ||
|
0
mai 25
|
589 | ||
|
1
août 19
|
5308 | ||
|
0
nov. 15
|
5479 | ||
|
0
déc. 21
|
2763 |