Warning: session_start() [function.session-start]: Cannot send session cache limiter

Author: Zeeshan Arshad     963     01/26/2013

Estimated reading time: 0 minutes, 50 seconds

Problem: Warning: session_start() [function.session-start]: Cannot send session cache limiter


Solution 1: Make sure that is not even a white-space before

Solution 2: Try this out


header('Cache-control: private');


Special Solution: Save the file in UTF-8 encoding without a BOM. So? Simply re-write OR copy/paste the code in a new file and save/replace your existing file. That's it!


Reason: Don’t save your UTF-8 file(s) with BOM because it will create this issue.


"Headers must be written before any data is sent to the client. Unicode files may include a Byte-Order Mark (BOM) to help distinguish the big endian and little endian byte order. Unfortunately, the BOM isn't understood by PHP. Upon encountering the BOMPHP assumes that it is dealing with data, by which time it's too late to modify headers. Solution? Save the file in UTF-8 encoding without a BOM."

Thanks to Gez Lemon 

Was this topic helpful?

Subscribe YouTube Channel

Zeeshan Arshad is a self-taught and multi-dimensional person with extraordinary track record of success with international clients and students.

Feel free to contact him for your project, training purpose or guidance.