<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>When I write a cookie within a webservices module.
it seems to arrive in my cookie directory named something like this</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:user@webmodulename.txt">user@webmodulename.txt</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However this means when another webmodule is
accessing it, it can't find it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Does anyone know what is the best method to
get around this so that the cookie can be read from a number of webservices.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note that changing the domain of the cookie seems
not to effect this, and also that all modules are running from the same domain
e.g. <A href="http://mydomain.com">http://mydomain.com</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note also that the cookie is currently set like
this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> with webmodule.Response.Cookies.Add
do<BR> begin<BR> //Domain :=
webmodule.Request.Host; Currently not set.<BR> Expires
:= (Now+ 1);<BR> // Limit the cookie to the path to this
DLL<BR> //Path := Request.URL; // Such as
'/scripts/StateKeeper.dll' //Not limited.</FONT></DIV>
<DIV><FONT face=Arial size=2> Secure :=
False;<BR> // The most important parts of the cookie are the
Name and Value<BR> Name := 'FID';<BR> Value
:= SObject.id;<BR> end;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt.</FONT></DIV></BODY></HTML>