ManaPHP\Http\Session\Adapter\File::read PHP Method

read() public method

public read ( string $sessionId ) : string
$sessionId string
return string
    public function read($sessionId)
    {
        $file = $this->_getFileName($sessionId);
        if (file_exists($file) && filemtime($file) >= time()) {
            return file_get_contents($file);
        } else {
            return '';
        }
    }