0

I have started my session in config.php file & i have included that file on every page on my site, my site works fine in localhost,

but when i have done live to it,it shows error like this,

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent

Any suggestions...

Thanks,

Dev
  • 489
  • 5
  • 14

2 Answers2

2

check that you don't send content before calling session_start. Just make session_start the first thing you do in your PHP file.

<?php session_start(); ?>
mkjasinski
  • 3,115
  • 2
  • 22
  • 21
0

If you will have space after closing PHP Tags in your config.php at the end of your code then also these warning will come.

So make sure you don't have any space after closing of PHP Tags which is ?>

Dead Man
  • 2,880
  • 23
  • 37