Google
 

Archive for the 'PHP Tips' Category

Warning: session_start(): Cannot send session cookie - headers already sent

It is known that you have to make sure nothing’s already sent to output to perform a successful http header modification. As such, in PHP, you will keep an eye on possible white spaces before the use of header() function to modify delivery headers. For example,

Page 1 of 1:1