session_start() call in first line of the PHP script file but server throw me warning:
Warning: session_start(): Cannot start session when headers already sent in /path/to/file.php on line 2
Remove BOM (Byte order mark) from file.
In JetBrain's IDEs you can open context menu in editor area and select
Remove BOM option. You can also create new UTF-8 file without BOM and copy content.