This page was last modified 20:28, 6 March 2008.
How-to use Cookies with WRT widgets and with XHR
From Forum Nokia Wiki
Compatibility: Web Runtime in S60 3rd Edition, Feature Pack 2
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.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UI development | cmaillet | Python | 4 | 2005-02-07 14:56 |
| Multiple requests with HTTPConnection | tinkywinky | Python | 3 | 2007-07-11 17:51 |
| cookies, sessions? | skyloon | General Browsing | 0 | 2004-05-04 15:54 |
| Alternative UI library for 9500 | yuyou | Personal Profile | 3 | 2005-05-24 15:04 |
| Welcome | emulators | Widgets and Widsets | 0 | 2007-06-26 17:05 |
