Re: Cookie not being set

2009-03-11 Thread André Warnier
Peter Crowther wrote: From: Andromeda Mobile [mailto:andromedamob...@gmail.com] I tried moving the include to the head of my document but this does not appear to have made any difference. Must it be in the head or should it be even above this? Ideally it would be wherever AdMob's documentation

RE: Cookie not being set

2009-03-11 Thread Peter Crowther
> From: Andromeda Mobile [mailto:andromedamob...@gmail.com] > I tried moving the include to the head of my document but this does > not appear to have made any difference. Must it be in the head or > should it be even above this? Ideally it would be wherever AdMob's documentation says it should ap

Re: Cookie not being set

2009-03-11 Thread Andromeda Mobile
I tried moving the include to the head of my document but this does not appear to have made any difference. Must it be in the head or should it be even above this? On Wed, Mar 11, 2009 at 2:16 PM, David Smith wrote: > Cookies are sent in the header and tomcat does not wait for the entire > body o

Re: Cookie not being set

2009-03-11 Thread David Smith
Cookies are sent in the header and tomcat does not wait for the entire body of the response before starting to send. It just waits for a buffer to fill up and sends as soon as that occurs. You should be setting the cookie asap or at least before the first block of response goes out on the wire.

Re: Cookie not being set

2009-03-11 Thread Andromeda Mobile
Hi Peter The include is actually in the body of the document, right at the bottom! The thing is the code creates a pixel image and so i wanted to put this in an area which would not impact the rest of the page. So should the include be in the head? Do you think this could be the cause? Regards Mi

RE: Cookie not being set

2009-03-11 Thread Peter Crowther
> From: Michael Farah > The Admob code is a JSP file named AdMob.jsp that is imported > into each page > of our webapp via this code snippet > [...] > response.addCookie(c); Just a thought... where's your include? In order to add the cookie (which must go in the header), I think no bytes