Thank you for your response. But I am still having the same problem if I don't use Javascript.<br>
<br>
I added:<br>
<br>
$c-&gt;delete_session('Logout'); in Root/default<br>
&nbsp;&nbsp;&nbsp; $c-&gt;res-&gt;cookies<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt;{id} = {<br>
&nbsp;&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;&nbsp; expires =&gt; time()-86400,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
&nbsp;&nbsp;&nbsp; $c-&gt;res-&gt;cookies<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt;{session} = {<br>
 &nbsp;&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;&nbsp; expires =&gt; time()-86400,<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
 <br>
and the Firebug Net log would generate:<br>
----------------------------------<br>
Response Headers<br>
Connection&nbsp; close<br>
Date&nbsp; Wed, 28 May 2008 02:13:04 GMT<br>
Content-Length&nbsp; 3345<br>
Content-Type&nbsp; text/html; charset=utf-8<br>
Set-Cookie&nbsp; catalyst_session=cb50670fae865f6266b0bb2c5b992c88093b8dbe; domain=.shindaru.my.office.com; path=/; expires=Wed, 28-May-2008 02:13:04 GMT session=; path=/; expires=Tue, 27-May-2008 02:13:04 GMT id=; path=/; expires=Tue, 27-May-2008 02:13:04 GMT<br>
Status&nbsp; 200<br>
X-Catalyst&nbsp; 5.7013<br>
<br>
Request Headers<br>
Host&nbsp; shindaru.my.office.com:3000<br>
User-Agent&nbsp; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14<br>
Accept&nbsp; text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5<br>
Accept-Language en-us,en;q=0.5<br>
Accept-Encoding gzip,deflate<br>
Accept-Charset&nbsp; ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>
Keep-Alive&nbsp; 300<br>
Connection&nbsp; keep-alive<br>
Cookie&nbsp; __utma=175737056.1376894921.1211863250.1211880303.1211937459.4; session=4alqcz3qqey2wkiokonx; id=sindharta; __utmz=175737056.1211863250.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=175737056.1376894921.1211863250.1211880303.1211937459.4<br>
Cache-Control max-age=0<br>
----------------------------------<br>
<br>
But the strange thing is, if I changed the expires into<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires =&gt; time()+5,<br>
the Firebug log would become:<br>
<br>
-----------------------------------<br>
Response Headers<br>
Connection&nbsp; close<br>
Date&nbsp; Wed, 28 May 2008 02:18:57 GMT<br>
Content-Length&nbsp; 3345<br>
Content-Type&nbsp; text/html; charset=utf-8<br>
Set-Cookie&nbsp; catalyst_session=70ca66db5210730bc63ccb2fdac240543da0f1a0; domain=.shindaru.my.office.com; path=/; expires=Wed, 28-May-2008 02:18:57 GMT session=; path=/; expires=Wed, 28-May-2008 02:19:02 GMT id=; path=/; expires=Wed, 28-May-2008 02:19:02 GMT<br>
Status&nbsp; 200<br>
X-Catalyst&nbsp; 5.7013<br>
<br>
Request Headers<br>
Host&nbsp; shindaru.my.office.com:3000<br>
User-Agent&nbsp; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14<br>
Accept&nbsp; text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5<br>
Accept-Language en-us,en;q=0.5<br>
Accept-Encoding gzip,deflate<br>
Accept-Charset&nbsp; ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>
Keep-Alive&nbsp; 300<br>
Connection&nbsp; keep-alive<br>
Cookie&nbsp; __utma=175737056.1376894921.1211863250.1211880303.1211937459.4; __utmz=175737056.1211863250.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=175737056.1376894921.1211863250.1211880303.1211937459.4; id=sindharta; session=4alqcz3qqey2wkiokonx; session=; id=<br>
Cache-Control max-age=0<br>
-----------------------------------<br>
 <br>
There are two 'session' and 'id' cookies in Request headers. By the way, "session" is the session set by the PHP program and the cookie_name for catalyst is "catalyst_session". <br>
FYI, the php program is on port 80, while the catalyst app is on port 3000, but that is not a problem, isn't it ?<br>
<br>
Sindharta<br>
<br>
<b>Gabriel Vieira &lt;gabriel.vieira@gmail.com&gt;</b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> You need to understand how Cookies are writed.<br>
Thery are HTTP Headers, so you may be giving an outdated value and<br>
next the system gives a update value. Javascript writes the Cookies<br>
after HTTP process, so the system values are irrelevant to it.<br>
<br>
Try to use the Catalyst structure to manipulate them instead of trying<br>
to make some code.<br>
<br>
<br>
On Tue, May 27, 2008 at 11:07 AM, Mitch Jackson <perimus@gmail.com> wrote:<br>
&gt;&gt;     delete @{ $c-&gt;session }{qw/__user/};<br>
&gt;&gt;     delete @{ $c-&gt;session }{qw/id/};<br>
&gt;&gt;     delete @{ $c-&gt;session }{qw/session/};<br>
&gt;<br>
&gt; Catalyst::Plugin::Session provides a "delete_session" method<br>
&gt; http://search.cpan.org/search?query=catalyst%3A%3Aplugin%3A%3Asession<br>
&gt;<br>
&gt;&gt;     $c-&gt;res-&gt;cookies<br>
&gt;&gt;         -&gt;{id} = {<br>
&gt;&gt;             value =&gt; [],<br>
&gt;&gt;             expires =&gt; 0,<br>
&gt;&gt;         };<br>
&gt;&gt; But the cookies just keep appearing, no matter how many times I refresh my<br>
&gt;&gt; browser.  I think there is something wrong, but I just couldn't figure out<br>
&gt;&gt; where.<br>
&gt;<br>
&gt; To ask a browser to forget a cookie, the expiry date must be specified<br>
&gt; in the past.  Try setting expires to time()-86400.<br>
&gt;<br>
&gt; If you continue to have problems, use Firebug<br>
&gt; (http://addons.mozilla.org/firefox/addon/1843)  to view the http<br>
&gt; headers and see the actual cookie headers received by the browser and<br>
&gt; post those here as they are received by the browser.<br>
&gt;<br>
&gt; Kind Regards,<br>
&gt;<br>
&gt; /Mitchell K. Jackson<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; List: Catalyst@lists.scsys.co.uk<br>
&gt; Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<br>
&gt; Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<br>
&gt; Dev site: http://dev.catalyst.perl.org/<br>
&gt;<br>
<br>
<br>
<br>
-- <br>
Gabriel Vieira<br>
<br>
_______________________________________________<br>
List: Catalyst@lists.scsys.co.uk<br>
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<br>
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<br>
Dev site: http://dev.catalyst.perl.org/<br>
</perimus@gmail.com></blockquote><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>