Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Developer
britishturbo
Posts: 23
Registered: 11-05-2009

Widget Cookies

Is there anything special I have to do to get cookies to store in the Widgets?

 

I'm using a remote php script that has a login script, and if it's logged in (known from cookies) then it displays the post login page. However after the login process is done, it comes back to the page not logged in. IT works correctly in the regular Browser.

 

Anything I need to do here?

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: Widget Cookies

Is the website using SSL/TLS to secure the login transaction and cookie setting?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
britishturbo
Posts: 23
Registered: 11-05-2009

Re: Widget Cookies

No it uses regular php/mysql server side. It's a vbulletin forum.

 

It works fine on the BB browser, but on the Widget it just returns me to the login prompt after its done validating.

The process flow is as follows:

 

login_page.php ---> login_validation.php ---> login_page.php

 

When it returns to the login page, it should have some php variables set that tell it your already logged in. Instead it displays the login prompt again.

 

I'm going to try passing the login credentials back to the Bb and store them locally in a sql database... could work for it. 

Please use plain text.