Function drupal_environment_initialize() from bootstrap.inc is setting this session variable:
ini_set('session.cache_limiter', 'none');
According to PHP documentation, valid options are:
- public
- private_no_expire
- private
- nocache
There's no such 'none' parameter. The appropriate setting seems to be:
ini_set('session.cache_limiter', 'nocache');
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | drupal_environment_initialize-1201088-21-d7.patch | 591 bytes | pjcdawkins |
| #17 | drupal_environment_initialize-1201088-17.patch | 603 bytes | eiriksm |
| #15 | drupal_environment_initialize-1201088-15.patch | 612 bytes | crazyrohila |
| #13 | drupal_environment_initialize-1201088-13.patch | 635 bytes | crazyrohila |
| #9 | drupal_environment_initialize-1201088-9.patch | 614 bytes | Zgear |
Comments
Comment #1
damien tournoud commentedThis is by design: we want to disable the cache limiter here. That said, it would be better to use an empty string instead of the invalid 'none' string.
Comment #2
damien tournoud commentedNeeds to be fixed in Drupal 8 first. This is a novice patch.
Comment #3
barbi commentedComment #4
derjochenmeyer commentedLooks good to me.
Comment #6
dries commentedNote sure this is better. At least 'none' was self-explanatory. DamZ, care to clarify?
Comment #7
chx commentedIt doesnt matter. I tried to ask PHP internals http://news.php.net/php.internals/55781 as long as you send a string that does not have a predefined meaning it will send nothing.
Comment #8
catchCould we document this behaviour in the code comment a bit more?
Comment #9
Zgear commentedOk I gave this a shot since it looks relatively easy.
Comment #10
chx commentedThanks but it's not really the guidelines... the behaviour is , there are strings with predefined meaning and if we set it to anything else, nothing will be sent. "// Use a string without a predefined meaning to avoid PHP sending the session limited" in other words what php does is
Comment #11
xjmHi @barbi,
Thanks for taking this on. Are you still working on this issue? If not, we'll unassign it in a day or two so that someone else can give it a try. (Feel free to assign it back to yourself if you'd still like to work on it, as well.) Thanks!
Comment #12
xjmPutting it back in the queue.
Comment #13
crazyrohila commentedAs Per chx said in #10, created a patch this .
Comment #14
xjmThanks @crazyrohila! A couple things I noticed with the new comment:
Inline comments should wrap at 80 characters or less, and end with a period. Also, this comment is a little confusing; can we re-word it to be more clear? (I realize this is what chx said originally.)
Also, I think this backports.
Comment #15
crazyrohila commentedMade Some Changes, as I think that is a 'empty string' or null, not 'string without predefined meaning' .
Comment #16
xjmThanks @crazyrohila. I still don't know what "PHP sending the session limited" means, though (it sounds like poetry), and the comment still needs a period. Ideally we would explain a little more. Also, I guess it would be "an empty string". Thanks!
Comment #17
eiriksmHello. Hope I am not hijacking anyone's issue here, but since there was no activity I took a shot at this. Nice and easy issue to start with on core.
Simplified the inline comment a bit, hopefully it explains things correctly.
Comment #18
xjmAlright, I think that comment does the trick. Thanks @eiriksm.
Comment #19
dries commentedI believe I committed this yesterday but forget to update the 'Status' field.
Comment #21
pjcdawkins commentedPatch attached for backport.
(minor issue, but it caused me some confusion when debugging something)
Comment #22
parthipanramesh commentedLooks fine. The latest patch does solve the issue.
Comment #23
David_Rothstein commentedCommitted to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/ddba1d9