<div class="gmail_quote">On Thu, Jun 21, 2012 at 12:24 PM, Peter Schober <span dir="ltr">&lt;<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

&gt; I first tried this:<br>
[...]<br>
<div class="im">&gt; But that didn&#39;t work.<br>
<br>
</div>Probably the missing path (as the original cookie will be set to the<br>
context&#39;s path). Either way, I do that in a Perl CGI script and<br>
there&#39;s nothing special to it.<br></blockquote><div><br></div><div>Ahaa, the path was indeed the problem. This works:  </div><div><br></div><div><div>&lt;%@ page language=&quot;java&quot; import=&quot;java.util.*&quot;  %&gt;</div>

<div>&lt;%</div><div>     </div><div>     Cookie idpSessionCookie = new Cookie(&quot;_idp_session&quot;, null);</div><div>     idpSessionCookie.setMaxAge(1);</div><div>     idpSessionCookie.setPath(&quot;/idp&quot;);</div>

<div>     response.addCookie(idpSessionCookie);</div><div>                </div><div>%&gt;</div></div><div><br></div><div>Thanks for your feedback!</div></div>

<br>
<span>DISCLAIMER ****</span><br><br><a href="http://www.tvh.com/newen2/emaildisclaimer/default.html" target="_blank">http://www.tvh.com/newen2/<WBR>emaildisclaimer/default.html</a><span> </span><br><br><span>&quot;This message is delivered to all addressees subject to the conditions</span><br><span>set forth in the attached disclaimer, which is an integral part of this</span><br><span>message.&quot;</span>