jonoc33 Posted December 25, 2007 Share Posted December 25, 2007 Ever since just this morning i've been getting an error on my admin page saying this: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jonoc33/public_html/clan/alpha/admin/admin.php:2) in /home/jonoc33/public_html/clan/alpha/include/session.php on line 46 I have a code which redirects using header(Location: (link)), and an include which, inside it, starts a session. Jono Quote Link to comment https://forums.phpfreaks.com/topic/83129-solved-strange-error/ Share on other sites More sharing options...
Dane Posted December 25, 2007 Share Posted December 25, 2007 Hi, Are you outputting any HTML before sending your header out? Can you post all your code please. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/83129-solved-strange-error/#findComment-422850 Share on other sites More sharing options...
jonoc33 Posted December 25, 2007 Author Share Posted December 25, 2007 Ah, i am outputting some CSS stuff.. is that the problem? Quote Link to comment https://forums.phpfreaks.com/topic/83129-solved-strange-error/#findComment-422851 Share on other sites More sharing options...
Dane Posted December 25, 2007 Share Posted December 25, 2007 Yes that could be the problem. Have a read of - http://www.phpfreaks.com/forums/index.php/topic,37442.0.html It solved all my header problems. Quote Link to comment https://forums.phpfreaks.com/topic/83129-solved-strange-error/#findComment-422853 Share on other sites More sharing options...
blueman378 Posted December 25, 2007 Share Posted December 25, 2007 oh and btw, make sure you dont have a " " space at the start or end of your php pages, including any that you include Quote Link to comment https://forums.phpfreaks.com/topic/83129-solved-strange-error/#findComment-422855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.