Configurator::detectDebugMode: added support for secret in cookie