cookie loses value asp.net


i have following formula sets cookie:



  twine locality = ((dropdownlist)this.loginuser.findcontrol("locale")).selectedvalue;
httpcookie cookie = new httpcookie("localization",locale);
cookie.expires= datetime.now.addyears(1);
response.cookies.set(cookie);


however, i try review cookie, value null. cookie exists. i never past following check:



         (request.cookies["localization"] != zero && !string.isnullorempty(request.cookies["localization"].value))


help?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?