I know it has to be on the top of te page and i did put it there for trying . Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cybertro/public_html/buitendegrenzen/index.php:1) in /home/cybertro/public_html/buitendegrenzen/index.php on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cybertro/public_html/buitendegrenzen/index.php:1) in /home/cybertro/public_html/buitendegrenzen/index.php on line 3 and i dit try ob_flush(); ob_start(); session_start(); nothing solved the problem i hope somone can help me .