Jump to content

This topic is 7610 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

This topic is 7610 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.