Hey.
Question about the function session_start() in PHP . I understand that when the PHP interpreter sees the session_start() function, then in the absence of a session, a Set-Cookie:sessionid=... field is created Set-Cookie:sessionid=... in the header of the http server response. But the http header fields can only be created BEFORE the start of the data output in the server response body - before any characters (markup, spaces ...) appear in the body. It turns out that tags <? ?> <? ?> should go at the very beginning of the document (WITHOUT spaces before them), and inside <? ?> <? ?> Before any echo session_start() should go. Do I get it right?