We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d1989 commit d59552bCopy full SHA for d59552b
app/code/Magento/Security/Model/Config/Backend/Session/SessionSize.php
@@ -25,10 +25,14 @@ class SessionSize extends Value
25
*/
26
public function beforeSave()
27
{
28
- $value = (int)$this->getValue();
29
-
30
- if ($value === null || $value < 0) {
+ $value = $this->getValue();
+ if ($value === '0') {
31
$value = 0;
+ } else {
32
+ $value = (int)$value;
33
+ if ($value === null || $value <= 0) {
34
+ $value = 256000;
35
+ }
36
}
37
$this->setValue((string)$value);
38
return $this;
0 commit comments