Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How-to use Cookies with WRT widgets and with XHR

From Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s): S60 3rd Edition FP2
Symbian
Article
Created: forum-mrkt (03 Oct 2007)
Last edited: hamishwillee (08 May 2013)

Contents

Cookies

Cookie support in Widget XMLHttpRequest

XHR requests support cookies — cookies set by the server are included in subsequent XHRs to a specific domain.

S60 WRT is compliant with the minimum limitations recommended in RFC 2109. The be on safe side, the following apply

  • Limitation of cookie support on the widget engine: At least 300 cookies
  • Limit of number of cookies from one domain: At least 20 cookies per unique host or domain name
  • Limit of the size of one single cookie: At least 4096 bytes per cookie


Application domains

Widgets do not utilize browser cookies. Widget and browser are separated applications. Browser cookies are protected by platform security and cannot be accessed from any other application, including widgets.

Cookie functions

  • Cookie unset operation
    • Both expiration value and
    • set cookie="" works
  • Cookies cannot be accessed from JavaScript directly (document.cookie is null). This is because a widget runs in a local domain that is not associated to any server domain.
This page was last modified on 8 May 2013, at 00:00.
160 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×