Warning:session_start():Cannot send session cache limiter – headers already sent

This error occur when you want to send header location in page to other page on load. Basically this error due to many region here is all that solution for that you .

Before apply any of new trick you test you page that when you remove ” header: Location ” your page show proper.If Yes then put again that code and try solution available here.If not then check code but basically this error not occur due to code error

1st Solution.

  • Check line where error occur that there is no whitespace before <?php
  • Try this /** session_start(); **/ instead of  session_start();
  • If error not change then this solution not working try next. If working then give your feedback in comment

2nd Solution.

  • Go to line where you start session.
  • Put this before session start “ob_start()”
  • If error not change then this solution not working try next. If working then give your feedback in comment

3rd Solution .

This error comes in some server where cache store are limited , you check your server cache limit .

  • Find PHP.INI in your server . If not available then create by help of php official website.
  • Find this line in that file “session.cache_limiter”.
  • Check there private or public. If private then change it to public

session.cache_limiter =public

You can also put directly to page where error occur before session start.

If you have another solution then please share with us || If your problem not solve then write in comment , i will try to resolve that.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *