src/Http/Cookie/Drivers/CookieDriver.php
/**
	 * Starts the session if output has not already been sent to the client.
	 */
Starts the session if output has not already been sent to the client.
Starts the session if output has not already been sent to the client .
private function startSession() {
		if (session_status() == PHP_SESSION_NONE) {
			if (!headers_sent()) {
				@session_name(config('session.name'));
				session_start();
			}
			else {
				if (!Framework::environment('test')) {
					throw new HorizonException(0x0004, 'Cannot initialize cookie session because headers are marked as sent');
				}
			}
		}
	}
private function startSession ( ) { if ( session_status ( ) == PHP_SESSION_NONE ) { if ( ! headers_sent ( ) ) { @ session_name ( config ( 'session.name' ) ) ; session_start ( ) ; } else { if ( ! Framework :: environment ( 'test' ) ) { throw new HorizonException ( 0x0004 , 'Cannot initialize cookie session because headers are marked as sent' ) ; } } } }
Starts the session if output has not already been sent to the client.
Starts the session if output has not already been sent to the client .