diff --git a/umbraco/businesslogic/StateHelper.cs b/umbraco/businesslogic/StateHelper.cs index 2a8f74cde2..10103cffdb 100644 --- a/umbraco/businesslogic/StateHelper.cs +++ b/umbraco/businesslogic/StateHelper.cs @@ -197,6 +197,21 @@ namespace umbraco.BusinessLogic #region Cookie Helpers + /// + /// Determines whether a cookie has a value with a specified key. + /// + /// The key. + /// + /// true if the cookie has a value with the specified key; otherwise, false. + /// + [Obsolete("Use !string.IsNullOrEmpty(GetCookieValue(key))", false)] + public static bool HasCookieValue(string key) + { + return !string.IsNullOrEmpty(GetCookieValue(key)); + } + + + /// /// Gets the cookie value. ///