Hi,<br>
<br>
I am not sure if I should continue this thread, but please let me report.<br>
If what you are saying, different ports is treated as different domains, is correct, then modifying the cookie by Javascript will also fail, won't it ?<br>
In my case though, modifying the cookies by Javascript works. This is the JS code.<br>
<br>
&lt;script type="text/javascript"&gt;<br>
// this deletes the cookie when called<br>
function logout( ) {<br>
&nbsp; document.cookie = 'id' + "=ab" + ";domain=.sin.my.office.com"&nbsp; + ";path=/" +";expires=Thu, 01-Jan-1970 00:00:01 GMT";<br>
&nbsp; document.cookie = 'session' + "=asdf" + ";domain=.sin.my.office.com"&nbsp; + ";path=/" + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";<br>
}<br>
logout( );<br>
&lt;/script&gt;<br>
<br>
I accessed the Javascript on http://sin.my.office.com:3000 (added it into the template), and the apache is still on http://sin.my.office.com (that's port 80, the default)<br>
<br>
So does it mean that Javascript will regard different ports on the same domains as having the same domains while Catalyst apps will treat different ports as different domains ?<br>
<br>
Sindharta<br>
<br>
<b>sindharta_tanuwijaya@yahoo.co.jp</b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Whoops ! Sorry for that. So it's the port ??<br>
 Thank you for the hints there. I think I should start reading HTTP cookie wiki then.<br>
 Thanks again.<br>
 <br>
 Siindharta<br>
 <br>
 <b>Adam Clarke &lt;adam.clarke@strategicdata.com.au&gt;</b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On 03/06/2008, at 12:05 PM, <sindharta_tanuwijaya@yahoo.co.jp> <sindharta_tanuwijaya@yahoo.co.jp><br>
  &gt; wrote:<br>
 <br>
 &gt; Yes, I was hoping that I've made a mistake there, but the thing is,  <br>
 &gt; I set up Apache in my computer so that I can access the PHP code on<br>
 &gt;<br>
 &gt; sin.my.office.com:80/login.php<br>
 &gt; while the catalyst works on sin.my.office.com:3000<br>
 &gt;<br>
 &gt; So there should be only one domain there, right ?<br>
 <br>
 As the previous poster noted, the different ports (80 vs 3000) result  <br>
 in these being treated as different domains.<br>
 <br>
 You may want to re-read this message: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg03287.html<br>
 <br>
 You might like to try setting up your Apache such that http://sin.my.office.com/php/login.php <br>
   is directed to you PHP app and http://sin.my.office.com/ is handled  <br>
 by your catalyst app. If you need help on setting that up, an apache  <br>
 mailing list is probably the place.<br>
 <br>
 <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>
 </sindharta_tanuwijaya@yahoo.co.jp></sindharta_tanuwijaya@yahoo.co.jp></blockquote><br>
  <div style="line-height: 0pt; width: 0pt; height: 5px; clear: both;">&nbsp;</div> <div>   </div><hr size="1"><a href="http://pr.mail.yahoo.co.jp/toolbar/" target="new">Power up the Internet with Yahoo! Toolbar.</a><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>
</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/toolbar/ target="new">Power up the Internet with Yahoo! Toolbar.</a><br>