Recent Topics

1 Nov 13, 2005 19:34    

Hi All,
I have a question about b2e cookies. Earlier this morning, I figured its time to rename my htsrv folder again, per [url=http://forums.b2evolution.net/viewtopic.php?t=3764]whoo's tips[/url].

Once I changed the folder name, and updated it in the /conf/_advanced.php file, my blog started spitting out cookie errors. After searching the forums, I found [url=http://forums.b2evolution.net/viewtopic.php?t=4550]Graham's solution[/url]. Turns out there were several blank lines at the end of my _advanced.php file. I deleted them and that fixed it.

Can someone explain why whitespace would cause a cookie error? I'm glad that I found the solution quickly, but I don't understand why it fixes it.

2 Nov 14, 2005 09:28

Cookies have to be sent out with the headers, which are the first thing that are sent.

However, whitespace is seen as page content, so, if you try and set a cookie after any whitespace (or any character) has been sent, then it cannot change the headers and spits its dummy out.

¥


Form is loading...