Oh well,
after wasting several of hours, I finally found out whats wrong with my ‘code’.
Here in the office I am forced to use Notepad++, which is writing UTF-8
encoded files by default WITH a so-called BOM.
Therefore sometimes the line `I haven’t changed anything` is correct, because your editor did.
If you have a BOM in your file, it’s the first output and therefore PHP cannot
initialize the session. Which is very bad if you sticked to sessions, as I am, because
I do write an e-commerce solution again.
- twobee
(Update: Added some hyperlinks)