×
Namespaces

Variants
Actions

How-to use Cookies with WRT widgets and with XHR

From Nokia Developer 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 03:00.
79 page views in the last 30 days.
×