Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
tphethean #1
Setting cookie on remote machine (web service?)
Is it possible to use a web service to set a cookie on the domain that the web
service is executed on? I need to set a cookie for siteA from siteB, and then
be able to recall the value of the siteA cookie from siteB at a later time.
(both of these sites are under my control so if any special configuration is
needed to do this then it is do-able).
tphethean Guest
-
filecopy from remote machine to local machine
Hi, I am tryin to copy a tar file from remote machine to local machine using Net:Telnet. I am using the following logic : my(@Out) =... -
Setting cookie with web service
Hi, Is it possible to use a web service to set a cookie on the domain that the web service is executed on? I need to set a cookie for siteA from... -
forms authentication-but do not write cookie to client machine
Hi I am trying to set up an asp.net application where I want the client to have to provide password and user name everytime so do not want to put the... -
Setting folder permissions on remote machine / remote domain
Hello there, I have the following problem: I have Machine A which runs my website. I have Machine B which holds folders for users. Machine A... -
[PHP] cookie not setting in IE
--- "Chris W. Parker" <cparker@swatgear.com> wrote: Can you show us the HTTP transaction using ethereal or something? Chris ===== Become a... -
blewis #2
Re: Setting cookie on remote machine (web service?)
I don't think so. If the web service is operating "behind the scenes",
meaning that the browser never directly calls it as a URL, then I don't think
you could set a cookie from that domain. They only way you could share the
cookies is if the two sites share a root domain name and you have domain
cookies activated....but you still would have to have the browser visit both
sites I think.
Bryan
blewis Guest
-
byron1021 #3
Re: Setting cookie on remote machine (web service?)
So siteA is making a call to siteB, right? If you do a cfhttp from a to b, the
respsonse headers will have all the cookie values (after the cfhttp call, dump
the cfhttp variable to see what i mean). You can parse these out and store
them somewhere so they will persist, say a text file. Then on subsequent calls
to siteB, you would need to set these values in the request header, using
cfhttp again you can set header or cookie values using cfhttpparam. (Using the
values from the above text file) The web service on siteB would just set the
cookies and read the cookie values as it normally would. I use a similar
system for some scheduled task calls, where I need to have the scheduled task
be the same user/login to another server across multple scheduled task. The
tasks actually run through a wrapper, that has a cfide/cftoken hard coded,
those get put into the header before my cfhttp call to the other server.
Hence, I have the same user (cfid/cftoken) making calls to the other server.
byron1021 Guest
-
tphethean #4
Re: Setting cookie on remote machine (web service?)
byron1021, that idea sounds workable so i will give that a try. Mind if i post
back here with any questions? Regarding the order of the calls, they can
happen either way. we've effectively got 3 sites (more to come) which share
authentication method via a web service on central authentication domain.
Session data is then stored in a database to persist the sessions, but to get
at the session data i need all the sites to be able to retreive their session
id. (I could pass it through url or similar, but this would mean you couldnt
just browse to the site and would have to follow routes we defined - also not
too secure).
tphethean Guest
-
tphethean #5
Re: Setting cookie on remote machine (web service?)
Ok i'm trying this code: <cfhttp method='post'
url='http://testcold7.ifslearning.com/cftest/session/cookie.cfm'> <cfhttpparam
type='cookie' name='mycookie' value='#mylogin.sessionid#'> </cfhttp> where
mylogin.sessionid is the value of a structure i want to store in the cookie.
However it doesnt seem to be setting any cookie when i call it - any ideas?
tphethean Guest



Reply With Quote

