Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Storing cookie to be used by another domain.

Featured Replies

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?

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!

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.