PHP session handling errors

后端 未结 13 1167
感动是毒
感动是毒 2020-12-15 17:33

I have this at the very top of my send.php file:

ob_start();
@session_start();

//some display stuff

$_SESSION[\'id\'] = $id; //$id has a value         


        
13条回答
  •  生来不讨喜
    2020-12-15 18:00

    please make sure the session.save_path is set correctly in the php.ini. php needs read/write access to the directory to which this variable is set.

    more information: http://www.php.net/manual/en/session.configuration.php#ini.session.save-path

提交回复
热议问题