Revert "[php:session] optimize session write function"

This reverts commit da0ee16b27.
This commit is contained in:
nao-pon
2017-04-25 19:57:48 +09:00
parent d2b7394475
commit 969c5f7614
+1 -8
View File
@@ -14,8 +14,6 @@ class elFinderSession implements elFinderSessionInterface
protected $keys = array();
protected $prevVal = null;
protected $base64encode = false;
protected $opts = array(
@@ -51,10 +49,6 @@ class elFinderSession implements elFinderSessionInterface
}
$this->started = session_id()? true : false;
if ($this->started && is_null($this->prevVal)) {
$this->prevVal = $_SESSION;
}
return $this;
}
@@ -63,9 +57,8 @@ class elFinderSession implements elFinderSessionInterface
*/
public function close()
{
if ($this->started && $this->prevVal !== $_SESSION) {
if ($this->started) {
session_write_close();
$this->prevVal = $_SESSION;
}
$this->started = false;