This prevents new visitors from seeing their first page in Chinese after Baidu comes calling.
TheSession->Hdr = NULL;
TheSession->inuse = 0; /* mark the session as unbound */
TheSession->Hdr = NULL;
TheSession->inuse = 0; /* mark the session as unbound */
+ TheSession->selected_language = 0; /* clear any non-default language setting */
CtdlLogResult(pthread_mutex_unlock(&TheSession->SessionMutex));
}
CtdlLogResult(pthread_mutex_unlock(&TheSession->SessionMutex));
}