summaryrefslogtreecommitdiffstats
path: root/modules/session
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2008-08-29 23:49:27 +0200
committerGraham Leggett <minfrin@apache.org>2008-08-29 23:49:27 +0200
commit0ec83e8b1b4000ced0cccfd74332065d273231c8 (patch)
tree3855b0f35a9ff3243e9b17f7245e4b03061cc30e /modules/session
parentAdd option to insert something in autoindex head. (diff)
downloadapache2-0ec83e8b1b4000ced0cccfd74332065d273231c8.tar.xz
apache2-0ec83e8b1b4000ced0cccfd74332065d273231c8.zip
mod_session_cookie: Make sure that cookie attributes are correctly
included in the blank cookie when cookies are removed. This fixes an inability to log out when using mod_auth_form. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r--modules/session/mod_session_cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/session/mod_session_cookie.c b/modules/session/mod_session_cookie.c
index 6374c69791..d8894f641b 100644
--- a/modules/session/mod_session_cookie.c
+++ b/modules/session/mod_session_cookie.c
@@ -70,7 +70,7 @@ static int session_cookie_save(request_rec * r, session_rec * z)
ap_cookie_write(r, conf->name, z->encoded, conf->name_attrs, z->maxage);
}
else {
- ap_cookie_remove(r, conf->name);
+ ap_cookie_remove(r, conf->name, conf->name_attrs);
}
}
@@ -80,7 +80,7 @@ static int session_cookie_save(request_rec * r, session_rec * z)
ap_cookie_write2(r, conf->name2, z->encoded, conf->name2_attrs, z->maxage);
}
else {
- ap_cookie_remove2(r, conf->name2);
+ ap_cookie_remove2(r, conf->name2, conf->name2_attrs);
}
}