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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.