hi,
that works now with IE6, IE7, IE8, last Safari4 and FF , what I've done is
the following:
<code>
// NB: version 0 for IE6 compatibility - confirmed
// NB: domain for IE8 - nearly confirmed (tested with P3P header)
CookieSetting cookie = new CookieSetting(0,
getAuthCookieName(),sessionToken, "/", getDomainName());
//cookie.setMaxAge(3600);
// NB: max-age commented for Safari - not absolutely sure
getResponse().getCookieSettings().add(cookie);
// NB: P3P header for Iframe and IE
Form responseHeaders = (Form)
getResponse().getAttributes().get("org.restlet.http.headers");
if (responseHeaders == null) {
responseHeaders = new Form();
getResponse().getAttributes().put("org.restlet.http.headers",
responseHeaders);
}
responseHeaders.add("P3P:CP", "\"NOI DSP COR NID ADM DEV PSA OUR IND
UNI PUR COM NAV INT STA\"");
</code>
--
View this message in context:
http://n2.nabble.com/cookie-setting-with-safari-browser-tp4271441p4337372.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2436972