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

Case of the disappearing cookie

Featured Replies

This is strange. I have a database with CDML pages that I'm serving on the web. If the database and the CDML pages are in the same directory and I set a cookie, it sets properly. If, however, I move the CDML pages to a subdirectory and leave the database in the main directory, it doesn't set the cookie. I thought that cookies were set on the browser machine. Confused with this one.

To solve your cookie problem you'll need to post the code that generates the cookies themselves. Also, some browsers have a preference that only accepts cookies that are returned to the same domain (or something). test the situation on another computer and/or browser to see if the problem reoccurs.

Now, regarding server file locations...

FileMaker Inc have a TechInfo article that discusses the location of database (TechInfo Article #105670 "Downloading a database from a Browser" at http://www.filemaker.com/support/techinfo.html))

It specifically states that only the html format files *need* to be kept in the Web folder, and that keeping the database files in the web folder is a security risk because they can be downloaded by any user simply by typing in the file's name.

I keep my database files in a "database" folder outside the web folder but on the same level.

[This message has been edited by Vaughan (edited November 06, 2000).]

  • Author

quote:

Originally posted by Vaughan:

To solve your cookie problem you'll need to post the code that generates the cookies themselves. Also, some browsers have a preference that only accepts cookies that are returned to the same domain (or something). test the situation on another computer and/or browser to see if the problem reoccurs.

Now, regarding server file locations...

FileMaker Inc have a TechInfo article that discusses the location of database (TechInfo Article #105670 "Downloading a database from a Browser" at
)

It specifically states that only the html format files *need* to be kept in the Web folder, and that keeping the database files in the web folder is a security risk because they can be downloaded by any user simply by typing in the file's name.

I keep my database files in a "database" folder outside the web folder but on the same level.

[This message has been edited by Vaughan (edited November 06, 2000).]

Thanks lots Vaughan!! That article was very very informative. I didn't know that. I will attempt to move the database files immediately. But one question, if I move it, will it affect my cookie like what I said? Thanks again for your very helpful advice.

I don't think that moving the database file location should affect cookies, since as far as Web Companion is concerned the db is open and that's all that matters.

Check your cookie code, I tend to leave the path option empty and they always wor for me.

  • Author

quote:

Originally posted by Vaughan:

I don't think that moving the database file location should affect cookies, since as far as Web Companion is concerned the db is open and that's all that matters.

Check your cookie code, I tend to leave the path option empty and they always wor for me.

Thanks for the advice. I did leave the path option open. Maybe the trick was that I was supposed to set the path? Well when I move the database I will try to see if it works as is. Thanks again for the great advice.

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.