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.

Using a cookie in a link

Featured Replies

Hi all,

I have set a cookie in a form and assigned a value to it. However, I want to later assign a the value stored in the cookie to a field in order to perform a find. But when I put the cookie in the link it doesn't work. I put it like this:

-snip-&interaction=[FMP-Cookie: usercode]&-snip-

When I click on the link I get the no records found error. If I then go to the filemaker database and select modify last find it pastes [FMP-Cookie: usercode] in the field instead of the value of the cookie. Can someone help me out here? Thanks in advance.

code:


[FMP-Cookie: CookieName , Encoding ]

Parameter(s)

First parameter: Name of the cookie to return.

Second parameter (optional): Encoding. Use one of the following reserved words:

Raw - (default) Don't perform any encoding

URL - Perform URL encoding


Will this help?

  • Author

quote:

Originally posted by Anatoli:

code:

[FMP-Cookie: CookieName , Encoding ]

Parameter(s)

First parameter: Name of the cookie to return.

Second parameter (optional): Encoding. Use one of the following reserved words:

Raw - (default) Don't perform any encoding

URL - Perform URL encoding


Will this help?


Anatoli,

I don't know if that will help. I thought I should use maybe RAW encoding, but the thing is that it isn't putting the data, just the text [FM-Cookie: usercode]. I tried it with URL encoding, but that's what happened. I will try it with raw, but I think it will make little difference. Hoping you can help me sort this out. Thanks in advance.

proton

This might not be right but ...

depending on the context in which your code snippet is living, the following could work:

...-&interaction={currentcookie:usercode}&...

Graeme

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.