Lets say I have two domains...
MySite.com
Example.com
And I want to set a cookie on example.com that can be read by mysite.com, I don't care if it can be read by example.com.
I thought this would be the code I would use to achieve this:
<cfcookie
expires="never" name="hiname"
domain=".mysite.com" value="steve">
All this code seems to do is require the user to be on mysite.com before the cookie can be set. Both domains are on the same server.
If I run example.com/setcook.cfm nothing happens, but if I run mysite.com/setcook.cfm the cookie is set for mysite. Problem is that does me absolutely no good.
Anyone got a solution to set this cookie? Just trying to set a simple firstname.
ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
MySite.com
Example.com
And I want to set a cookie on example.com that can be read by mysite.com, I don't care if it can be read by example.com.
I thought this would be the code I would use to achieve this:
<cfcookie
expires="never" name="hiname"
domain=".mysite.com" value="steve">
All this code seems to do is require the user to be on mysite.com before the cookie can be set. Both domains are on the same server.
If I run example.com/setcook.cfm nothing happens, but if I run mysite.com/setcook.cfm the cookie is set for mysite. Problem is that does me absolutely no good.
Anyone got a solution to set this cookie? Just trying to set a simple firstname.
ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.