top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

PHP Error: Warning:session_start() : cannot send session cookie - headers already sent by

+1 vote
517 views

Getting the following two error -
Warning:session_start() : cannot send session cookie - headers already sent by(output started at.......)
Warning:session_start() : cannot send session cache limiter - headers already sent by(output started at.......)

posted Mar 22, 2018 by Bhawna Kriplani

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Where ever i put session_start i get that error don't know how to solve

1 Answer

0 votes

session_start() must be at the top of your source, no html or other output before like

<?php
@ob_start();
session_start();
?>

Also your can only send session_start() one time

Above should solve your issue.

answer Mar 22, 2018 by Salil Agrawal
Similar Questions
+5 votes

Description: You get a warning message on your browser that says:

Warning: Cannot modify header information - headers already sent by (output started at

...