Instant Web Publishing Guide

Table Of Contents
Chapter 4
|
Designing a database for Instant Web Publishing 37
Creating a script to log out of a database and close the session
It is important that web users properly close their session by clicking the Log Out button in the status area.
If they close browser windows or quit the browser before clicking the Log Out button, their session is still
open. This might prevent others from accessing the database and could make data vulnerable to hackers until
the specified time out occurs.
Important Your script should include the Exit Application script step, which closes all virtual windows, ends
the user’s session, and takes the user back to the Database Homepage.
Script triggers and Instant Web Publishing solutions
In FileMaker Pro, both scripts and user actions (such as the user clicking a field) can activate script triggers.
But in Instant Web Publishing, only scripts can activate script triggers. For example, if an Instant Web
Publishing user clicks a field that has an OnObjectEnter script trigger, the trigger is not activated. However,
if a script causes the focus to move to the field, then the OnObjectEnter script trigger is activated. For more
information on script triggers, see FileMaker
Pro Help.
Hosting databases with FileMaker Server Advanced: an overview
Without planning, you might have to redefine links to other files or images. If your database is maintaining
file path information for container field objects or file relationships, you should store the file paths as a
relative link. It’s also best to store all files in the same folder.
Here are general steps for hosting Instant Web Publishing files with FileMaker Server Advanced:
1. Move the FileMaker Pro databases into the Databases folder in the FileMaker Server folder.
2. Move the contents of the Web folder to the root folder of the web server software. Make sure the relative
path is preserved.
For IIS, move the files to: <root drive>\Inetpub\wwwroot
For Apache, move the files to: /Library/WebServer/Documents
Note Verify the path with the server administrator.
3. Redirect your URLs to: http://<IP address>/fmi/iwp or http://<domain name>/fmi/iwp
so web users can locate your database.
For information on enabling Instant Web Publishing in FileMaker Server Advanced, see FileMaker Server Help.