Hi;

I need some advice on how to implement something. I have two websites,
windwardreports.com and windward.net. When someone comes to
windwardreports.com, I need to save a cookie in windward.net. This cookie is
then used on windward.net to identify them as the same person on
windwardreports.com.

One critical requirement is I only store this cookie if it doesn't exist. If
it already exists I do not want to overwrite it. So 3rd party cookies are
out as there is no way to know if the cookie already exists. (If there is,
please let me know.)

So I think the best way to implement this is in the windwardreports.com page
have a <img src="http://www.windward.net/mytrackingservlet?value=dave"/> and
then have a servlet that takes the value=dave and stores a cookie with the
value dave. Is this the best approach?

On the client side my main website is pure html (no jsp/faces). I'd like to
leave it that way. Is there any downside to using javascript to create the
url? I figure it's very rare someone has cookies on but javascript off - but
is that a correct assumption? Or should I make this a jsp page?

On the server side, does anyone have some servlet code that implements this?
It strikes me as being easy but there is no point in reinventing the wheel.

Thanks - dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to