Warning: session_start() [function.session-start]:

2019-01-23 22:18发布

I got this error when I changed my index.php file into index.html file and then changed back again to its original index.php file

Can anyone tell me what to do to prevent this error?

Warning: session_start() [function.session-start]: open(/tmp/sess_e0725de9954b..2c14904, O_RDWR) failed: Permission denied (13) in /home/accn/public_html/dbc.php on line 42

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/accn/public_html/dbc.php:42) in /home/acceptin/public_html/dbc.php on line 42

PLEASE HELP! badly need to fix this

1条回答
倾城 Initia
2楼-- · 2019-01-23 22:52

Create folder "tmp" on your root directory with permission 777 then before start_session,

ini_set('session.save_path', 'tmp');

Done

查看更多
登录 后发表回答