Warning: session_start(): cannot send session cache limiter – headers already sent – What’s wrong?
Have you ever had trouble starting a PHP session? For example, when you started a session on a particular page, did you get the error: Warning: session_start(): cannot send session cache limiter – headers already sent before? The error means that some output has already been sent to the browser, so the headers can no longer be sent.
If you are looking for a solution, we would like to show you some methods that have helped other users fix it. Let’s start!

How to fix Warning: session_start(): cannot send session cache limiter – headers already sent
Here are some solutions you can try one by one until one works.
- Solution 1: Check out the code and make sure that the
<?phpis the first character. That means there is no space or tab before. - Solution 2: Put the code
<?php session_start(); ?>above all other code. - Solution 3: Change the encoding of the document from UTF-8 to ANSI. Or you can use UTF-8 encoding without BOM (Byte Order Mark) by ensuring that you don’t use notepad.exe to edit or save the files since it will insert UTF-8 BOM.
Conclusion
All in all, we have shared three methods to fix this common error: Warning: session_start(): cannot send session cache limiter – headers already sent. We hope that they are useful for you. If you have more ideas to address this trouble, don’t hesitate to let us know by leaving your comment below.
Furthermore, if you are using WordPress or Joomla and want to change the appearance of your site, have a look at our collection of Free WordPress Themes as well as Joomla 4 Templates here. Thanks for your attention and have a wonderful day.



