diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-09-13 23:17:28 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-09-13 23:17:28 +0100 |
commit | e582497322428f72343115f055e9e198047fe3b4 (patch) | |
tree | 900bd37d3dd885acaf064dc6777eea3b72701b71 /desktop | |
parent | c830d14d0bd06dda4eaf7de27ae97b826173afe1 (diff) | |
download | netsurf-e582497322428f72343115f055e9e198047fe3b4.tar.gz netsurf-e582497322428f72343115f055e9e198047fe3b4.tar.bz2 |
if the cookie is a session cookie indicate it
previously session cookies were simply displayed as having an expiry
in 1970 which was unhelpful.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/cookie_manager.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/cookie_manager.c b/desktop/cookie_manager.c index 3f48dad5c..d3d5a7d7e 100644 --- a/desktop/cookie_manager.c +++ b/desktop/cookie_manager.c @@ -294,8 +294,14 @@ cookie_manager_set_treeview_field_data(struct cookie_manager_entry *e, &e->data[COOKIE_M_PATH], strdup(data->path)); /* Set the Expires date field */ - cookie_manager_field_builder_time(COOKIE_M_EXPIRES, + if (data->expires == -1) { + cookie_manager_field_builder(COOKIE_M_EXPIRES, + &e->data[COOKIE_M_EXPIRES], + strdup(messages_get("CookieManagerSession"))); + } else { + cookie_manager_field_builder_time(COOKIE_M_EXPIRES, &e->data[COOKIE_M_EXPIRES], &data->expires); + } /* Set the Last used date field */ cookie_manager_field_builder_time(COOKIE_M_LAST_USED, |