Fix “Cannot send session cache limiter - headers already sent”

When you are updating somebody elses code, or perhaps migrating a site from one server to another, then you might run across this particularly frustrating error:

Cannot send session cache limiter - headers already sent

Most session error fixes involve ensuring that the session_start() function is the very first thing present in this file - i.e. no new lines, no white spaces, absolutely nuffink before it.

However, what is one to do when this is the case and you still get the error message above?

The solution is actually down to the encoding that you save the file as - chances are, you are saving it as utf-8, and for some reason, this causes the problem (if anybody knows why this is, please tell us in the comments ;-) )

To fix the problem, save the file as ANSI instead, and ‘hey presto’, no error!

Some other interesting posts:

0 Responses to “Fix “Cannot send session cache limiter - headers already sent””


  1. No Comments

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
RSS for Posts RSS for Comments