跳至內容
選單
此問題已被標幟
3741 瀏覽次數

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 ?

頭像
捨棄

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?

相關帖文 回覆 瀏覽次數 活動
3
7月 25
4262
0
5月 25
861
2
3月 24
2132
0
1月 23
1730
1
11月 22
3185