Skip to content

Commit 31894cc

Browse files
committed
Support same cookie-name for multiple domain
1 parent 6e91a82 commit 31894cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/loopj/android/http/PersistentCookieStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public PersistentCookieStore(Context context) {
8080

8181
@Override
8282
public void addCookie(Cookie cookie) {
83-
String name = cookie.getName();
83+
String name = cookie.getName() + cookie.getDomain();
8484

8585
// Save cookie into local store, or remove if expired
8686
if(!cookie.isExpired(new Date())) {

0 commit comments

Comments
 (0)