1๐
โ
No it will not affect a cookie with a different path. The name and path are both checked to see if a cookie matches.
Same thing happens when you set a new value to a cookie on a particular path. It will not affect other cookies with the same name and different paths than the one you set.
๐คNithish Thomas
Source:stackexchange.com