Error message in my computer: Warning: session_start () [functionsession-start]: Cannotsendsessioncachelimiter-headersalre
Error message in my computer: Warning: session_start () [function. session-start]: Cannot send session cache limiter-headers already sent (output started at D: APMServ-v5.2.6APMServ5.2.6wwwhtdocsKingNerOAuserUserKqManage.php: 1) in D: APMServ-v5.2.6APMServ5.2.6wwwhtdocsKingNerOAusercheckaccess.php on line 2
The cause is that there is output. Solution: modify session. auto_start = 0 in php. ini to session. auto_start = 1, and change output_buffering = to on or any number.
Solution in linux
Method 1. comment out/etc/php. ini
Session. save_path = "/var/lib/php/session"
Method 2: view the apache user and group, and add the user to the group in which the session folder is located.
Method 3: do not have any output before session_start!
Error 2
Warning: session_start () [function. session-start]: Cannot send session cache limiter-headers already sent (output started at E: phpcodeadmin. php: 1) in E: phpcodelogolistadminlogo. php on line 2
That is, the session variable requires the temporary space of the system.
Session. save_path = "set the absolute path of a valid folder" (for example, session. save_path = "C: WINDOWStemp ")
Session. save_path = remove the ';' sign. In addition, you can edit the folder and add EVERYONE with the write and modify permissions!