Question
Sneaky way to call a ColdFusion page...
As my topic title/summary elude to, I am curious to know if
anyone has successfully used the <img> tag to call a
coldfusion page. This is an alternative to the <iframe> I am
exploring for a single sign on solution.
<img src=" http://www.externaldomain.org/sso-cookie.cfm?ssotoken=123456798" alt="runs script on extrernaldomain.org" /><br />
I have sso-cookie.cfm page running some code and then returning a 1 pixel gif via <cfcontent>. But I want to set a cookie and or create a session from the call. It sort of make sense that I might only be able to run server side logic since the client would only be expecting an image back and therefor not be capable of utilizing any client side functions - i.e cookies.
<img src=" http://www.externaldomain.org/sso-cookie.cfm?ssotoken=123456798" alt="runs script on extrernaldomain.org" /><br />
I have sso-cookie.cfm page running some code and then returning a 1 pixel gif via <cfcontent>. But I want to set a cookie and or create a session from the call. It sort of make sense that I might only be able to run server side logic since the client would only be expecting an image back and therefor not be capable of utilizing any client side functions - i.e cookies.