Rewriter and cookie
Hi,
I noted that the rewriter rewrite cookie name adding the prefix "gateway-host" to all the cookies.
For example if an application set a cookie with name mycookie then the rewriter change the name to gatewayhost.domani.com_mycookie.
For this reason if the application try to read the cookie from javascript using the system function document.cookie, mycookie is not found because the new name is gatewayhost.domani.com_mycookie.
How can I read rewrited cookie from javascript ?
Thanx.
[523 byte] By [
canepaf] at [2007-11-26 8:32:20]

# 1
What the rewriter is supposed to do is to rewrite the cookie and also rewrite the javascript that tries to read the cookie. When you view the source of the rendered page in your browser, the functions to read cookie should also be rewritten. - Sandeep Soni
# 3
Hi,
I also have a document.cookie setter problem.
in js: document.cookie = "NTLogin=aF8lMJKww7GI; path=/cgi-bin/ntrack/;"
It sets this cookie for the gateway url instead of the application url, it seems?
Which causes the browser not to send the cookie to the application?
Is it possible to make this work or are changes needed for the way the cookie is set?