Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Cookies and Webviews

I am authenticating my users using httpclient, but after authentication, I need to preserve the session generated in the httpclient when I open a webview, is there anyway to force the cookie to the webview?

— asked March 30th 2010 by JT Jankowiak
  • cookies
  • httpclient
  • mobilesdk
  • webview
0 Comments

6 Answers

  • Accepted Answer

    Marc, thanks for the respose, fortunately I managed to figure it out reading the old support forums at support.appcelerator.com.

    The cookies are not shared between httpclient and webviews luckily webviews have a db that manages cookies, I don't know if it is the best solution but I am currently inserting/updating the webview.db with the values I need…

    — answered March 30th 2010 by JT Jankowiak
    permalink
    1 Comment
    • Would you please elaborate on the use of webview.db?

      — commented March 7th 2013 by Gopi Reddy
  • Have you found an answer to this?
    I am trying to do the exact same thing but no luck. How do you use the webview.db database to do this?

    — answered November 11th 2010 by Farid Fadaie
    permalink
    0 Comments
  • This is an 8 month old issue, but do you know how I can access the webviews db? I am trying to do something similar.

    — answered November 12th 2010 by Abraham Vivas
    permalink
    0 Comments
  • Thanks James that answers a question I had last week about this - updating document.cookies has zero effect.
    Didn't know there was a db for this.

    — answered March 31st 2010 by David McL
    permalink
    0 Comments
  • This is an 8 month old issue, but do you know how I can access the webviews db? I am trying to do something similar.

    — answered November 12th 2010 by Abraham Vivas
    permalink
    0 Comments
  • Does your webview can't access logged in pages?

    — answered March 30th 2010 by Marc Bender
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.