Hi,<br>
<br>
We are currently building an add-on for a site, which was built by using CGI, while the add-on is made by using Catalyst. <br>
Let's say that the sessions in the old site can be maintained by this simple PHP program.<br>
<br>
&lt;?php<br>
setcookie("id", "sindharta", time() + 3600, "/", ".sin.my.office.com");<br>
setcookie("session", "blablablablablabla", time() + 3600, "/", ".sin.my.office.com");<br>
echo "cookies...\n";<br>
print_r($_COOKIE);<br>
echo "set!";<br>
?&gt;<br>
<br>
As you probably know, that's to set the login id, and you'll notice that I am not using Catalyst::Plugin::Authentication. Now, in the new add-on, I want to have a logout button so that the user can log out directly too, but I am having difficulty in programming that.<br>
<br>
I&nbsp; have tried things such as:<br>
--<br>
&nbsp;&nbsp;&nbsp; delete @{ $c-&gt;session }{qw/id/};<br>
&nbsp;&nbsp;&nbsp; $c-&gt;res-&gt;cookies<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt;{$cookie_name} = {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value =&gt; [],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires =&gt; 0,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
<br>
&nbsp;&nbsp;&nbsp; my $cookies = fetch CGI::Simple::Cookie;<br>
&nbsp;&nbsp;&nbsp; $cookies-&gt;{session}-&gt;value([]);<br>
&nbsp;&nbsp;&nbsp; $cookies-&gt;{id}-&gt;value([]);<br>
--<br>
<br>
But the cookie just won't disappear, it keeps coming back so that although I have pressed logout button, I am still considered as "login".<br>
Any ideas what went wrong here ?<br>
<br>
Sindharta<br>
<br>

<div style="line-height: 0; width: 0; height: 5px; clear: both;">&nbsp;</div>
<p>&#32;

<hr size=1><a href=http://pr.mail.yahoo.co.jp/ganbare-nippon/ target="new">GANBARE! NIPPON! Win your ticket to Olympic Games 2008.</a><br>