Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2010
    Location
    Boston
    Posts
    1

    Cookie support in android library

    Does any version of the lighstreamer sdk for Android support passing of cookies to the HttpUrlConnection? Our server-side implementation requires cookies to login and connect.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Cookie management can be enabled on the java APIs at a global level, through the CookieHandler class.
    We tested that for Java SE in a different context and the same should hold for Android.
    Hence, you should be able to perform all the cookie management needed at application level, outside Lightstreamer library.

    On the other hand, you cannot set hooks on the single connnections performed by Lightstreamer library to set the login credentials as custom cookies.
    However, note that the recommended way to send user credentials to Lightstreamer Server is through the provided user and password attributes.
    This would be particularly important if web clients were also involved (see <use_protected_js> in the Server configuration file).

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:47 PM.