src/PhpConsole/Connector.php
private function initServerCookie() {
		if(!isset($_COOKIE[self::SERVER_COOKIE]) || $_COOKIE[self::SERVER_COOKIE] != self::SERVER_PROTOCOL) {
			$isSuccess = setcookie(self::SERVER_COOKIE, self::SERVER_PROTOCOL, null, '/');
			if(!$isSuccess) {
				throw new \Exception('Unable to set PHP Console server cookie');
			}
		}
	}
private function initServerCookie() {
		if(!isset($_COOKIE[self::SERVER_COOKIE]) || $_COOKIE[self::SERVER_COOKIE] != self::SERVER_PROTOCOL) {
			$isSuccess = setcookie(self::SERVER_COOKIE, self::SERVER_PROTOCOL, null, '/');
			if(!$isSuccess) {
				throw new \Exception('Unable to set PHP Console server cookie');
			}
		}
	}
private function initServerCookie ( ) { if ( ! isset ( $ _COOKIE [ self :: SERVER_COOKIE ] ) || $ _COOKIE [ self :: SERVER_COOKIE ] != self :: SERVER_PROTOCOL ) { $ isSuccess = setcookie ( self :: SERVER_COOKIE , self :: SERVER_PROTOCOL , null , '/' ) ; if ( ! $ isSuccess ) { throw new \ Exception ( 'Unable to set PHP Console server cookie' ) ; } } }
Notify clients that there is active PHP Console on server
@throws \Exception
Notify clients that there is active PHP Console on server