I tried UrlDecode() , and replace, but using <cfcookie> or <cfset
cookie....> always seems to escape the $.
Is there a way to manually set the cookie without using javascript or CF?

test
<cfcookie name="TEST" value="$">
<cfcookie name="TEST1" value="#URLdecode('%24')#">
<cfset cookie.TEST2 = "$">
<script>
document.cookie="TEST3=$";
document.write(document.cookie);
</script>

result:
TEST=%24; TEST1=%24; TEST2=%24; JSESSIONID=d830efc7b820$DCU$3DH; TEST3=$ 

It would be nice to set the cookie before going to the site, eg by
creating an <img> tag with the id in the url, but i don't know how
many people have 3rd party cookies turned off. Plus, if i can't use CF
to set the cookie then this is a non-starter..


On Tue, 18 Jan 2005 11:41:37 -0500, Dave Watts <[EMAIL PROTECTED]> wrote:
> > is that because it came from the URL? Try the two following tricks:
> >
> > - use UrlDecode() when writing url.jsessionid to the cookie
> >
> > or
> >
> > - have siteA write a cookie for siteB (using <cfcookie domain=""...>
> > syntax) and vice versa (siteB writes cookies for siteA)
> 
> The first option should work. The second one probably won't, because you
> can't just specify a completely different domain when writing a cookie. The
> DOMAIN attribute lets you limit the cookie being written to a specific
> subdomain within a domain.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190947
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to