Jump to content

Cannot send session cache limiter


rvdb86

Recommended Posts

hi, i have run into trouble when starting a session. I get the following error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jeroncou/public_html/click4web/index.php:1) in /home/jeroncou/public_html/click4web/index.php on line 2

 

I know that session_start() should be the first line of the code and nothing should be before it. and that is how it is! here is my script:

<?php
session_start();
?>
<html>
<head>
</head>
<body>
<?php echo "test";?>
</body>
</html>

 

the funny thing is that it only happens in my index.php file. if i change the name of the file it works fine  ???

 

could something be wrong in my php.ini? i deleted it and still getting the same problem  :'(

 

some one please help me!

Link to comment
https://forums.phpfreaks.com/topic/144712-cannot-send-session-cache-limiter/
Share on other sites

The second most common reason why you can get an "output started at line 1" error message is if the file has been saved with UTF-8 encoding and the BOM (Byte Order Mark) characters are content that is being output to the browser. Save your file as ANSI/ASCII.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.