03-09-2010 10:20 AM
Windows 7 Ultimate 32 / Visual Studio 8/.NET ASP web server
I have been working with the XMLHttpRequest and while I am having to make completely new server side pages to call, it is working. One odd-ball thing is that the "document" that gets retrieved has the CSS tags, but the CSS files don't come over. However, having the same CSS files on the plug-in side does the trick.
Does anyone have any sample code or can you point me to the right direction for basic authentication and keeping persistent connection or cookies or something using the XMLHtpRequst framework in the web widget plug-in environment?
03-09-2010 05:42 PM
Scott, not sure if this helps or not but I've been having a tough time getting the blackberry browser to persist forms authentication cookies. I spent about a day and half on it and eventually gave up. I ended up using ASP.NET Session vars for some limited security.
This was my original post:
03-10-2010 11:45 AM
Thank you for your response...I was wondering if you could give me a little more detail on your approach.
I have started looking into it... So is the idea you use the httpcontext.curent and reset the variables i.e.. user.idnity.name and is authenticated =true if they are not ? It seems like under the plug-in environment it losses the session variables after the request where a regular browser (20 minutes or so) it keeps them for a while as long as you are in the browser. The BlackBerry browser keeps the context around, because I can run the same pages after the forms authenticaton page and it works like normal.
I see in the C# reference how you can gain access by the variable and read and reset them in your page "session" or "httpcontext.current".
Sorry to bother you... I can see how I can pick them up or reset them directly in C#, but I am not understanding how you are passing or setting them from within the BlackBerry environment, and I feel like sending authentication params through the querystring is bad practice and maybe insecure even with SSL.
Thanks again for your response,