AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper..::..getLanguageCookie Method (SQL, Domain, HttpContextWrapper)

Gets the language cookie.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static int getLanguageCookie(
	SQL currentSql,
	Domain currentDomain,
	HttpContextWrapper context
)

Parameters

currentSql
Type: AdvantageCMS.Data..::..SQL
The current SQL connection.
currentDomain
Type: AdvantageCMS.Core.Common.BusinessEntity..::..Domain
The current domain.
context
Type: HttpContextWrapper
The context wrapper.

Return Value

The resolved language identifier, falling back to the domain's primary language when the cookie is missing or invalid.