Set-Cookie is not working in Chrome

2,238 views
Skip to first unread message

אורי

unread,
Dec 12, 2019, 12:46:10 AM12/12/19
to django...@googlegroups.com
Django users,

I have a problem with Set-Cookie not working in Chrome (I didn't check other browsers). It worked in the past but it stopped working recently. I have two websites with two domain names, and I need to set the cookie in both websites. I'm calling a URL in each of the domain names to set the cookie. But it doesn't set the cookie on the other website (the website I'm not browsing now). Is there any solution to this problem? I think this is due to recent changes in Chrome.

אורי

unread,
Dec 12, 2019, 12:49:37 AM12/12/19
to django...@googlegroups.com
Hi,

I want to add, the users login or logout or sign up to one website, and I want them to login or logout from the other website too, automatically. Currently if they login or logout to one website, it doesn't affect the other website.

אורי

unread,
Dec 12, 2019, 1:02:48 AM12/12/19
to django...@googlegroups.com

‪On Thu, Dec 12, 2019 at 7:45 AM ‫אורי‬‎ <u...@speedy.net> wrote:‬

Mike Dewhirst

unread,
Dec 12, 2019, 1:08:02 AM12/12/19
to django...@googlegroups.com
On 12/12/2019 4:48 pm, אורי wrote:
> Hi,
>
> I want to add, the users login or logout or sign up to one website,
> and I want them to login or logout from the other website too,
> automatically. Currently if they login or logout to one website, it
> doesn't affect the other website.

Can you detect the logout on one and invalidate the session in the other
backend database? Might have to make an API to do that.

>
> אורי
> u...@speedy.net <mailto:u...@speedy.net>
>
>
> ‪On Thu, Dec 12, 2019 at 7:45 AM ‫אורי‬‎ <u...@speedy.net
> <mailto:u...@speedy.net>> wrote:‬
>
> Django users,
>
> I have a problem with Set-Cookie not working in Chrome (I didn't
> check other browsers). It worked in the past but it stopped
> working recently. I have two websites with two domain names, and I
> need to set the cookie in both websites. I'm calling a URL in each
> of the domain names to set the cookie. But it doesn't set the
> cookie on the other website (the website I'm not browsing now). Is
> there any solution to this problem? I think this is due to recent
> changes in Chrome.
>
> אורי
> u...@speedy.net <mailto:u...@speedy.net>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABD5YeFCw_ofBMyEQ89v7hoDTpGqR5R3f9oVeTjwD8-x-sdG2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABD5YeFCw_ofBMyEQ89v7hoDTpGqR5R3f9oVeTjwD8-x-sdG2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.

אורי

unread,
Dec 12, 2019, 1:21:34 AM12/12/19
to django...@googlegroups.com
Hi,


On Thu, Dec 12, 2019 at 8:07 AM Mike Dewhirst <mi...@dewhirst.com.au> wrote:
On 12/12/2019 4:48 pm, אורי wrote:
> Hi,
>
> I want to add, the users login or logout or sign up to one website,
> and I want them to login or logout from the other website too,
> automatically. Currently if they login or logout to one website, it
> doesn't affect the other website.

Can you detect the logout on one and invalidate the session in the other
backend database? Might have to make an API to do that.


Yes, I think it's possible, but anyway I want to setup the cookie in both domain names - for login and for logout. I want to setup the cookie on the second website when the user is viewing a page on the first website (each of the two websites can be the first in this sense).

Both of the websites run on the same server with the same database. Each user has a user ID which is the same in both websites.
 
Reply all
Reply to author
Forward
0 new messages