Hello Everybody,

I am facing weird session error. Okay I have php site runing on Redhat 7.3 Linux and working perfectly without any error/problem.

Whe I tried to upgrade my linux server either or Redhat 8, Redhat 9 or Fedora Core Linux. I am getting error .

"Cannot send session cookie - headers already sent

Cannot send session cache limiter - headers already sent"

I could not notice any error on my codes coz its already working fine on 7.3, Only thing I have notice that Redhat 7.3 bundled with Apache while Redhat 8.0, Redhat 9 and Fedora Core bundled with httpd and apache not installed.

Can any one help me how to solve this problem.

Thanks In Advance.

Bhupendra

    are you sure you have no whitespaces before <?php or havent echoed anything before passing any headers...i had the same problem when i switched form apache to IIS on windows..it was the whitespace problem...
    Hope this helps you.
    🙂

      Hello Greg,

      YEAH, coz the site is already runing on Redhat 7.3, If any line break of white space present then it should have problem on Redhat 7.3 too.

      Thanks & Regards,

      Bhupendra

        Write a Reply...