Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3757 Näkymät

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 ?

Avatar
Hylkää

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?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
heinäk. 25
4290
0
toukok. 25
873
2
maalisk. 24
2145
0
tammik. 23
1736
1
marrask. 22
3191