You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
720 B
24 lines
720 B
2 years ago
|
--- a/modules/session/mod_session.c 2018/02/16 13:39:47 1824476
|
||
|
+++ b/modules/session/mod_session.c 2018/02/16 13:41:31 1824477
|
||
|
@@ -510,12 +510,15 @@
|
||
|
*/
|
||
|
ap_session_load(r, &z);
|
||
|
|
||
|
- if (z && conf->env) {
|
||
|
- session_identity_encode(r, z);
|
||
|
- if (z->encoded) {
|
||
|
- apr_table_set(r->subprocess_env, HTTP_SESSION, z->encoded);
|
||
|
- z->encoded = NULL;
|
||
|
+ if (conf->env) {
|
||
|
+ if (z) {
|
||
|
+ session_identity_encode(r, z);
|
||
|
+ if (z->encoded) {
|
||
|
+ apr_table_set(r->subprocess_env, HTTP_SESSION, z->encoded);
|
||
|
+ z->encoded = NULL;
|
||
|
+ }
|
||
|
}
|
||
|
+ apr_table_unset(r->headers_in, "Session");
|
||
|
}
|
||
|
|
||
|
return OK;
|