diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-07 09:58:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-07 09:58:13 +0000 |
commit | 980a47b42b95d7b9ff3378dc7b0f2e1c453fb649 (patch) | |
tree | 291d230a24b99e8ef0c81e59380b640d484229d7 /lib/cookie.h | |
parent | f7ca561b06d34b230040bdaa3baa9c37596e7d84 (diff) | |
download | curl-980a47b42b95d7b9ff3378dc7b0f2e1c453fb649.tar.gz |
support for ingoring session cookies added
Diffstat (limited to 'lib/cookie.h')
-rw-r--r-- | lib/cookie.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cookie.h b/lib/cookie.h index 7bdbf0c34..d9e1a0fe9 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -55,9 +55,10 @@ struct CookieInfo { /* linked list of cookies we know of */ struct Cookie *cookies; - char *filename; /* file we read from/write to */ - bool running; /* state info, for cookie adding information */ + char *filename; /* file we read from/write to */ + bool running; /* state info, for cookie adding information */ long numcookies; /* number of cookies in the "jar" */ + bool newsession; /* new session, discard session cookies on load */ }; /* This is the maximum line length we accept for a cookie line */ @@ -75,7 +76,7 @@ struct CookieInfo { struct Cookie *Curl_cookie_add(struct CookieInfo *, bool header, char *line, char *domain); -struct CookieInfo *Curl_cookie_init(char *, struct CookieInfo *); +struct CookieInfo *Curl_cookie_init(char *, struct CookieInfo *, bool); struct Cookie *Curl_cookie_getlist(struct CookieInfo *, char *, char *, bool); void Curl_cookie_freelist(struct Cookie *); void Curl_cookie_cleanup(struct CookieInfo *); |