Hi,
I have 2 websites with 1 domain and 1 sub-domain.
I would like retrieve my odoo session when I'm connect on one website.
I have tried to add 'domain' in cookie :
response.set_cookie('session_id', httprequest.session.sid, domain=".test.testt", max_age=90 * 24 * 60 * 60)
But if I write whatever letter on domain, it works, but i would like only with my local domain
For exemple, if my domain is exemple.com, I would like to work with foo.exemple.com or too.exemple.com
But with domain=".test.testt" it works too
What is the problem with my cookie ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3140
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Mar 24
|
574 | ||
|
0
Feb 24
|
1201 | ||
|
0
Jan 23
|
708 | ||
|
1
Nov 22
|
1765 | ||
|
0
Aug 22
|
1053 |
Hello, I know this is rather old, but I'm facing the same issue with Odoo 12. Were you able to solve the problem? Is it possible to have cookies working on multiple domains?