ASF Bugzilla – Attachment 34873 Details for
Bug 60909
Do not save expiry in empty session
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Do not save expiry in empty session
patch-modules_session_mod_session.c (text/plain), 817 bytes, created by
manu
on 2017-03-24 04:43:53 UTC
(
hide
)
Description:
Do not save expiry in empty session
Filename:
MIME Type:
Creator:
manu
Created:
2017-03-24 04:43:53 UTC
Size:
817 bytes
patch
obsolete
>Index: modules/session/mod_session.c >=================================================================== >--- modules/session/mod_session.c (revision 1788360) >+++ modules/session/mod_session.c (working copy) >@@ -353,11 +353,15 @@ > > char *buffer = NULL; > int length = 0; >- if (z->expiry) { >+ >+ apr_table_do(identity_count, &length, z->entries, NULL); >+ >+ /* Do not send cookie with just expiry set without any data */ >+ if (length > 0 && z->expiry) { > char *expiry = apr_psprintf(z->pool, "%" APR_INT64_T_FMT, z->expiry); > apr_table_setn(z->entries, SESSION_EXPIRY, expiry); > } >- apr_table_do(identity_count, &length, z->entries, NULL); >+ > buffer = apr_pcalloc(r->pool, length + 1); > apr_table_do(identity_concat, buffer, z->entries, NULL); > z->encoded = buffer;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60909
: 34873