Jump 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.

Featured Replies

  • Newbies

Does anyone know if there is a way to detect if a particular cookie has been set in a users browser?

I'm using FMPro 4.1. Users must login to a certain section of a site, on successful login their user id is stored in a cookie. If they leave that section and then return, I want to test if they already have a cookie so that they can bypass the login screen. I don't have any problem setting up two branches using and IF statement, but I can't get filemaker to successfully determine which to go to.

Thanks

  • 2 weeks later...

Hey G-Man,

This should be how your CDML needs to be configured:

To set your cookie you need this CDML in one of the -Action tags before the user leaves the site:

[FMP-SETCOOKIE: User Has Been Here=Yes, EXPIRES=43200]

Remember, that your expires has to be set to a number longer than the time from when your user will visit again (in minutes). In the example above, 43,200 minutes is approx. one month. If you don't set a cookie "Expires" time, the cookie defaults to expiring immediately.

When the user returns, you need to incorporate the following CDML for your "IF-ELSE" statement:

[FMP-IF: CurrentCookie: User Has Been Here.eq.Yes]

You have been here before.[FMP-ELSE]

You are new. Please login.

[/FMP-IF]

I hope this helps. Let me know if it does.

Jeff

Create an account or sign in to comment

Important Information

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

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.