Variable Visions

Articles PHP PHP-ob-start-and-sessions


tutorials - PHP and Web-Development.

PHP ob_start and sessions

Published Wed. Jan. 09, 2013


If you receive a session warning on your php login page, and have already sent a header, you will need to use php ob_start BEFORE you start the session

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent

ob_start("ob_gzhandler");

session_start();