We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8262b commit 22d6838Copy full SHA for 22d6838
src/com/loopj/android/http/PersistentCookieStore.java
@@ -82,6 +82,13 @@ public PersistentCookieStore(Context context) {
82
public void addCookie(Cookie cookie) {
83
String name = cookie.getName();
84
85
+ // Save cookie into local store, or remove if expired
86
+ if(!cookie.isExpired(new Date())) {
87
+ cookies.put(name, cookie);
88
+ } else {
89
+ cookies.remove(name);
90
+ }
91
+
92
// Save cookie into local store
93
cookies.put(name, cookie);
94
0 commit comments