Bleppe Posted April 2, 2004 Posted April 2, 2004 I've read several threads about setting cookies with FM / CDML. It seems that nobody trusts FM to do that task and always suggests using javascript to do it. Whats is the problem with using [FMP-SetCookie]? I've made some code that sets the cookie from FM using [FMP-SetCookie] and it seems to be working fine. I wanted to use javascript, but my problem with javascript is that when I set the cookie with a value from CDML [FMP-Field: blabla] inside the javascript, FileMaker doesn't replace the value, using the value from the field "blabla" - javascript simply sets the cookie value to: [FMP-FIeld: blabla]! What am I doing wrong? And why shouldn't I use [FMP-SetCookie]? Thanx Bleppe FileMaker Version: 5 Platform: Mac OS 9
Garry Claridge Posted April 2, 2004 Posted April 2, 2004 I believe that the reading of the Cookie by FM is a bit unreliable. Good Luck. Garry
Bleppe Posted April 2, 2004 Author Posted April 2, 2004 So it is only the reading of the cookie by FM that is unreliable? Not the SetCookie? If that is true, then I'm happy with my solution... Thx Bleppe
Jeff Spall Posted April 2, 2004 Posted April 2, 2004 hi, just two point that have been said many times before 1 FileMaker ignores anything inside comment tags, so leave those out of your Javascripts if you embed CDML tags into it. 2 FileMaker cookies work cross platform/cross browser until you start adding time paramenters to them. I can set a cookie with FileMaker and read it with php and vice versa without any problem, BUT I'm only using ones that expire at the end of the session. regards, jeff
Recommended Posts
This topic is 7878 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now