Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 1
Registered: ‎02-28-2012
My Device: Blackberry
My Carrier: ????

Cookies on Blackberry

I have a MCV application that run on pc and blackberry.On computer works fine but on blackberry when i read cookie show nothing.

In index function i create the cookie :

             HttpCookie cookie =newHttpCookie("CTest","test"); 

Then ,I open a page and on save button I read if this cookie exist :

       HttpCookie cookie =Request.Cookies["CTest"]; 
if(cookie ==null|| cookie.Value!="test") 
ViewData["QuestMessage"]="Your browser must accept cookies!"; 

Always enter in this if and i receive message that my browser doesn't accept cookies, but i enter on blackberry and cookies exist. Can somebody tell me what is it the problem?