TheJoey Posted September 14, 2009 Share Posted September 14, 2009 im getting this error Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampplite\htdocs\mellow-yellow\sub_direct\cart.php:41) in C:\xampplite\htdocs\mellow-yellow\sub_direct\cartinc.php on line 6 session_start(); this is line 6. i think the session is still continuing from my login. Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/ Share on other sites More sharing options...
Bricktop Posted September 14, 2009 Share Posted September 14, 2009 Hi TheJoey, session_start needs to be called (ideally first) but certainly before anything is output to the browser. See http://us3.php.net/manual/en/function.session-start.php for further information. Move the session_start function to the top of the file and it should resolve this problem. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/#findComment-918393 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 what if im including this like <html> <body> <?php include('session.php'); </body> </html> Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/#findComment-918398 Share on other sites More sharing options...
Bricktop Posted September 14, 2009 Share Posted September 14, 2009 Hi TheJoey, Change it to: <?php include('session.php'); <html> <body> </body> </html> Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/#findComment-918406 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 But then that places my shopping cart in my banner area of the page.. Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/#findComment-918410 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 nvm worked it out you pointed me in the right directions thanks Link to comment https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/#findComment-918416 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.