[Zope-CMF] Incorrect domain on cookie.

Jeff jeff@thecolemans.ws
Wed, 30 May 2001 16:28:24 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_02A8_01C0E925.8CB46BF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I have a working version of the PortalPoll Product tutorial (cheers from =
the peanut gallery) ;-}
Now I would like to change the 'have you voted' test into a cookie value =
test instead of on the URL.
Sounded pretty easy, but....
If I set the cookie in 'processEmbeddedVotes' DTML method the domain is =
not correct, the poll 'id' is used for the domain.
In testing, I can set a cookie with the correct domain from other DTML =
methods within the ZClass. =20
The only difference that I can see is that 'processEmbeddedVotes' is =
called as a form 'POST', should that cause the strange domain?
Anyone have any idea what is causing this?

Thanks,
Jeff



------=_NextPart_000_02A8_01C0E925.8CB46BF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a working version of the =
PortalPoll Product=20
tutorial (cheers from the peanut gallery) ;-}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Now I would like to change the 'have =
you voted'=20
test into a cookie value test&nbsp;instead of on the URL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sounded pretty easy, =
but....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If I set the cookie in =
'processEmbeddedVotes' DTML=20
method the domain is not correct, the poll 'id' is used for the=20
domain.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In testing, I can set a cookie with the =
correct=20
domain from other DTML methods within the ZClass.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The only difference that I can see is =
that=20
'processEmbeddedVotes' is called as a form 'POST', should that cause the =
strange=20
domain?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Anyone have any idea what is causing=20
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jeff</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_02A8_01C0E925.8CB46BF0--