Jump to content

Warning: session_start()


unsider

Recommended Posts

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/unsider/www/andy/main.php:9) in /home/unsider/www/andy/include/session.php on line 46

 

Can some explain to me what this warning means, or how to potientally how to fix it, or how to hide it?

 

I will post code as soon as I understand why it's being caused, if necessary.

Link to comment
https://forums.phpfreaks.com/topic/92821-warning-session_start/
Share on other sites

were the code then it probly white spaces...

 

<?php session_start();?> no white space.....

<?php session_start(); ?> white space.....

It isn't the whitespace inside the PHP that causes the error, because that whitespace is not sent to the browser.  It is any output that the browser sees (spaces before opening PHP tags, echo/print statements, etc.).

Link to comment
https://forums.phpfreaks.com/topic/92821-warning-session_start/#findComment-475521
Share on other sites

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.