Jump to content

[SOLVED] Persistent error "Cannot send session cookie - headers already sent by..."


Edgewalker81

Recommended Posts

Aha!

 

This was a little surprising, so it might help someone else to know.

 

If you are getting this error, and your code is correct, this may be your problem:

I have been saving my files in UTF-8 format, but it looks like the byte-order-mark was somehow being outputted at the start of the file.

The solution was to save as "ANSI" or "UTF without BOM," which may actually be equivalent.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.