Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
545 views
in Technique[技术] by (71.8m points)

php - Warning: session_start() [function.session-start]: open(/tmp/sess_e07..42c14904, O_RDWR)

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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

Done


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...