Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Two equal cookies cause of subdomain handling #8324

Closed
qstiegler opened this issue Jul 24, 2014 · 1 comment
Closed

Two equal cookies cause of subdomain handling #8324

qstiegler opened this issue Jul 24, 2014 · 1 comment

Comments

@qstiegler
Copy link

On one of our Projects, we´ve got a cookie with the Session ID for the whole domain, so we can also access this id from the subdomains. But if i´m working with $cookies or $cookieStore. It doesn´t look at the domain. So when I change, add or delete another cookie on a subdomain, the function create a duplicate of the Session ID cookie for the subdomain, too.

Please fix this, that if a cookie belongs to another subdomain or like in this case to the main domain, it won´t create a duplicate.

@btford
Copy link
Contributor

btford commented Jul 24, 2014

Please provide a reproduction via jsbin, plnkr.co or jsfiddle

This saves us a lot of time. Thanks!

@btford btford added this to the Backlog milestone Jul 24, 2014
@btford btford removed the gh: issue label Aug 20, 2014
@shahata shahata closed this as completed in 92c366d Mar 2, 2015
hansmaad pushed a commit to hansmaad/angular.js that referenced this issue Mar 10, 2015
The `put`, `putObject` and `remove` methods now take an options parameter
where you can provide additional options for the cookie value, such as `expires`,
`path`, `domain` and `secure`.

Closes angular#8324
Closes angular#3988
Closes angular#1786
Closes angular#950
netman92 pushed a commit to netman92/angular.js that referenced this issue Aug 8, 2015
The `put`, `putObject` and `remove` methods now take an options parameter
where you can provide additional options for the cookie value, such as `expires`,
`path`, `domain` and `secure`.

Closes angular#8324
Closes angular#3988
Closes angular#1786
Closes angular#950
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants