Jump to content
Server Maintenance This Week. ×

[FP5] Cookies via CDML vs Javascripts?


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

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7328 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.