January 19, 200323 yr I am developing a website that toggles between two different domains. Using CDML, is it possible to store a cookie BY DOMAIN A to be later read (accessed) BY DOMAIN B. For example: DOMAIN A (unsecured domain) collects a product ID and stores it in a cookie intended for DOMAIN B. DOMAIN B (secured domain) reads the cookie with product ID and matches it to customer information to complete purchase transaction. Is this an accomplishable scenario?
January 21, 200323 yr Hi, vasilek! I'm not a cookie expert since I have never set one but I researched them a little for an upcoming project. Since no one else has posted a response yet, here's my 2 cents: A cookie is a cookie so you can access a set cookie using FMP, javascript, or other means, but I do believe it is specific to a specific server. I think you "should" (shaky, unsure voice) be able to access/manipulate a cookie across domains as along as both domains are hosted on the same server. I am only hypothesizing and hope someone confirms/corrects me but I hope this puts you on the right track if no else responds. You may want to look at tokens, too. Tokens must be passed from page to page, though, so are more trouble to track if it's not a sequential process. Good luck!
January 22, 200323 yr Hi, there's no reason why you shouldn't be able to call a stored cookie by name, although there are browser settings that would prevent that, BUT I've found FileMaker cookies to be rather flakey - like across platforms/browser types. They're usually reliable as session cookies, but less so as persistant ones. Much better to set the cookie from a server-side action or through javascript. Tokens would be a problem as they will only pass from page to page through an FMP action call and aren't any use once you leave the FileMaker environment. regards, jeff
Create an account or sign in to comment