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

Problems with the Linux version of XAMPP, questions, comments, and anything related.

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

Postby qbox » 02. April 2008 19:25

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?
qbox
 
Posts: 2
Joined: 02. April 2008 19:22

Postby qbox » 02. April 2008 19:35

SOLVED!

session_start(); need to be on the TOP.
qbox
 
Posts: 2
Joined: 02. April 2008 19:22

Postby alifaan » 10. June 2008 19:33

Where on the TOP?
alifaan
 
Posts: 6
Joined: 10. June 2008 19:31

Postby sari42 » 10. June 2008 22:06

alifaan wrote:Where on the TOP?

before any output (even no space or newline before "<?PHP").
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby alifaan » 10. June 2008 22:13

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;

   }
alifaan
 
Posts: 6
Joined: 10. June 2008 19:31

Postby sari42 » 11. June 2008 08:30

...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).
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby alifaan » 12. June 2008 13:26

@sari42 what to do now, is there any way how to solve this problem?
alifaan
 
Posts: 6
Joined: 10. June 2008 19:31

Postby sari42 » 12. June 2008 19:28

debug/repair that file ...ask the joomla ppl...
sari42
 
Posts: 800
Joined: 27. November 2005 18:28


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 21 guests