Initially, when I designed the site, I worked with sessions on only one page, where I declared session_start(); Then it took to extend this feature to the entire site. To do this, I placed session_start() in the config.php , which in turn connects to each php file of the site. This is where the problems arose ...
The site structure is as follows (header files):
- config.php
- header.php
- left.php
- footer.php
These files are connected to each page of the site. And the pages are divided into categories in which there is no session error:
- index.php
- shopingcart.php
- contact.php
And the files in which the error occurs:
- faqs.php
- productdetail.php
- checkout.php
How can I overcome this error?
Warning: session_start () [function.session-start]: Cannot send session cache limiter - headers already sent (output started by S: \ home \ localhost \ www \ web_shop \ faqs.php: 1) in S: \ home \ localhost \ www \ web_shop \ config.php on line 2