Page 1 of 1

Warning: session_start() [function.session-start]:

PostPosted: 02. April 2008 19:25
by qbox
Hi
I have problem with xampp. I cant make session. Its give me this error

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /opt/lampp/htdocs/uciliste/login_form.php:10) in /opt/lampp/htdocs/uciliste/login_form.php on line 12

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /opt/lampp/htdocs/uciliste/login_form.php:10) in /opt/lampp/htdocs/uciliste/login_form.php on line 12

I try on google to find some solution, but no hope. Any help from here?

PostPosted: 02. April 2008 19:35
by qbox
SOLVED!

session_start(); need to be on the TOP.

PostPosted: 10. June 2008 19:33
by alifaan
Where on the TOP?

PostPosted: 10. June 2008 22:06
by sari42
alifaan wrote:Where on the TOP?

before any output (even no space or newline before "<?PHP").

PostPosted: 10. June 2008 22:13
by alifaan
nope, can't make it work
this is the error
Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /opt/lampp/htdocs/joomla/configuration.php:67) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 406

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /opt/lampp/htdocs/joomla/configuration.php:67) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 406

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/joomla/configuration.php:67) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 409


this is the code in that lines
Code: Select all
function _start()

   {

      //  start session if not startet

      if( $this->_state == 'restart' ) {

         session_id( $this->_createId() );

      }
      session_cache_limiter('none');

      session_start();



      // Send modified header for IE 6.0 Security Policy

      header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');



      return true;

   }

PostPosted: 11. June 2008 08:30
by sari42
...output started at /opt/lampp/htdocs/joomla/configuration.php:67...

It seems that the config file sends an error message or whatever to the screen output (before session_start() was called).

PostPosted: 12. June 2008 13:26
by alifaan
@sari42 what to do now, is there any way how to solve this problem?

PostPosted: 12. June 2008 19:28
by sari42
debug/repair that file ...ask the joomla ppl...