Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

Warning: session_start()... Cannot send session cache limiter - headers already sent ...fSession.php on line 407

posted by asiansexynine 9 years ago
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output 
started at C:\\xampp\\htdocs\\dev\\langs\\thai.php:2) in C:\\xampp\\htdocs\\dev\\init\\libs\\fSession.php on line 407

I build multi-language website with flourishlib from r922 - r927.. and switch language by $_GET['lang']

example:


/index.php
/index.php?lang=
/index.php?lang=english 

not got any warning or error ..

but got warning when

I got this warning switch to second language..

/index.php?lang=thai 

I got  warning ..
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output 
started at C:\\xampp\\htdocs\\dev\\langs\\thai.php:2) in C:\\xampp\\htdocs\\dev\\init\\libs\\fSession.php on line 407

This just means you started outputting content before working with the session. Simply call fSession::open() in your initialization code, and the warning will go away.

posted by wbond 9 years ago