Exemplo n.º 1
0
        /// <summary>
        /// Gets and decrypts a cookie for the users city
        /// </summary>
        /// <returns></returns>
        protected HttpCookie GetCityCookie()
        {
            HttpCookie cookie = Request.Cookies.Get(Constants.Security.UserCityCookieName);

            if (cookie != null)
            {
                var decodedCookie = CookieManager.Decode(cookie);
                return(decodedCookie);
            }

            return(null);
        }