gagan22 Posted February 28, 2009 Share Posted February 28, 2009 Hi everyone, I am facing such type of warning is coming in php file.How it can be resolved . I have also used session_start() function in php file as a first line in php code. I have used it just prior to sending output to browser.But still warning is coming. I am so confused about this . Please help me . I am sending what type of warning is coming. But i am unable to solve this warning. Please help me. Such type of warning is coming----------- Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 9 Thanks, Gagan Link to comment https://forums.phpfreaks.com/topic/147291-session_start-warning-is-coming/ Share on other sites More sharing options...
jackpf Posted February 28, 2009 Share Posted February 28, 2009 You need to set the session before anything is sent to the page. IE, at the top of the script. Link to comment https://forums.phpfreaks.com/topic/147291-session_start-warning-is-coming/#findComment-773206 Share on other sites More sharing options...
PFMaBiSmAd Posted February 28, 2009 Share Posted February 28, 2009 You already have a thread for this problem where you have been told two times that the problem is you session.save_path setting, don't start another thread, it just wastes everyones time. Link to comment https://forums.phpfreaks.com/topic/147291-session_start-warning-is-coming/#findComment-773266 Share on other sites More sharing options...
kenrbnsn Posted February 28, 2009 Share Posted February 28, 2009 Duplicate post. Locked. Link to comment https://forums.phpfreaks.com/topic/147291-session_start-warning-is-coming/#findComment-773424 Share on other sites More sharing options...
Recommended Posts