<div class="gmail_quote">On Thu, Jun 21, 2012 at 12:24 PM, Peter Schober <span dir="ltr"><<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> I first tried this:<br>
[...]<br>
<div class="im">> But that didn't work.<br>
<br>
</div>Probably the missing path (as the original cookie will be set to the<br>
context's path). Either way, I do that in a Perl CGI script and<br>
there'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><%@ page language="java" import="java.util.*" %></div>
<div><%</div><div> </div><div> Cookie idpSessionCookie = new Cookie("_idp_session", null);</div><div> idpSessionCookie.setMaxAge(1);</div><div> idpSessionCookie.setPath("/idp");</div>
<div> response.addCookie(idpSessionCookie);</div><div> </div><div>%></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>"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."</span>