src/SessionStorage/FileStorage.php
public function write(string $id, array $data, int $startTime, int $accessTime)
    {
        $saveData = [
            'startTime' => $startTime,
            'accessTime' => $accessTime,
            'data' => $data,
        ];

        $stringData = self::serialize($saveData);
        if (file_put_contents($this->path . '/sess_' . $id, $stringData, LOCK_EX) === false) {
            return false;
        } else {
            return strlen($stringData);
        }
    }
public function write(string $id, array $data, int $startTime, int $accessTime)
    {
        $saveData = [
            'startTime' => $startTime,
            'accessTime' => $accessTime,
            'data' => $data,
        ];

        $stringData = self::serialize($saveData);
        if (file_put_contents($this->path . '/sess_' . $id, $stringData, LOCK_EX) === false) {
            return false;
        } else {
            return strlen($stringData);
        }
    }
public function write ( string $ id , array $ data , int $ startTime , int $ accessTime ) { $ saveData = [ 'startTime' => $ startTime , 'accessTime' => $ accessTime , 'data' => $ data , ] ; $ stringData = self :: serialize ( $ saveData ) ; if ( file_put_contents ( $ this -> path . '/sess_' . $ id , $ stringData , LOCK_EX ) === false ) { return false ; } else { return strlen ( $ stringData ) ; } }
{@inheritdoc}
{