Welcome!

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

Reply
New Developer
Posts: 5
Registered: ‎12-10-2008
My Device: Not Specified

Cookie Support

Hi

I am using blackberry 9000simulator. I want to support  cookie.

Can some one give me example of that.

 

bhaumik

 

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Cookie Support

Several libraries come up on google, I would think most would be adapable to BB.

You can see this,

http://www.ietf.org/rfc/rfc2965.txt

 

but also note that most common tools like curl write cookie files you can examine for testing.

I'm still playing with our cookie code and it can take a while to get all the quirks figured out,

a library could be nice, but it isn't too hard to write some simple handlers.  

New Developer
Posts: 5
Registered: ‎12-10-2008
My Device: Not Specified

Re: Cookie Support

Hi

thanks for reply

but my problem   for supporting cookie for browser, i dont know why my browser doesnt  support it

 

 

Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Cookie Support

The browser does support cookies. What makes you think it doesn't?
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Cookie Support

Developer
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Cookie Support

Hello

 

Check out this example of using cookies.

 

It works in the 9530 and should work in all versions.

 

http://www.cesarcaballeroart.com/cookietest1.htm

 

 

Cheers

 

Andrew

New Contributor
Posts: 9
Registered: ‎09-07-2010
My Device: Not Specified

Re: Cookie Support

Hello,

I tested the link and it doesn't work for me. I'm using the "Blackberry-SDK -9530" simulator integrated  in Eclipse. Can you advise something? Is someting should be enabled?

Highlighted
Developer
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Cookie Support

Hello

 

Javascript needs to be enabled.

 

If you are using a 6.0 browser then cookies need to be enabled.

 

What version of the browser are you testing on?

 

 

Cheers

 

Andrew

 

New Contributor
Posts: 9
Registered: ‎09-07-2010
My Device: Not Specified

Re: Cookie Support

Abarber,

Sorry for asking such dummy questions, but how can I check it? I have enabled everything I could in the browser's options, but still no progress Smiley Sad

 

Also the problem persists in my widget, cookies also do not work there.

Developer
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Cookie Support

Hello

 

What version of the browser are you testing on?

 

(< 6.0)

Goto

Options - About

 

For the javascript enabled 

Goto browser

click Blackberry Button

click options

click Browser Configuration

 

Check Support Javascript

 

 

If its a 6.0 device

goto options

goto About Device Versions

 

for javscript enabled and cookie enabled

Goto browser

click Blackberry Button

click options

Enable Javascript is checked

Accept Cookies is checked

 

Cheers

 

Andrew