Jump to content
Sign in to follow this  
ToddH

session timeout limit for IWP

Recommended Posts

Has anyone found away around the 60 minute timeout for Instant Web Publishing users. I find that a ridiculouse limit as my users are constantly having to log back in. I hoped there was a plugin or code or script of somekind available to increase that.

Share this post


Link to post
Share on other sites

I wish I knew how to make it longer too - I asked the same question a year ago, no responses.

In some ways it makes sense for IWP to be treated in this way if it is deployed to an undisciplined audience (the Internet?) as most users don't "log off". As FMP permits only 5 users then you'd use up the limit quickly. FMS permits 100 users, but still that could get chewed up pretty quickly.

AFAIK IW operates through Java, so may be a little bit of Java to refresh the screen every so often - but that would mean hacking the FM IWP code and you would break the license.

Share this post


Link to post
Share on other sites

I too have been waiting for years for Filemaker to fix this. I even tried digging around in their Tomcat configuration on the server, but to no avail. I assume the reason why Filemaker does not want to support longer or even unlimited session lengths is because they fear loss of sales of the FMP client.

To work around the problem I wrote a Greasemonkey script that refreshes the Filemaker page 59 minutes after the last page load to avoid getting signed off. Works only with Firefox, though.

Here is the script (replace myserver with the server URL and mydatabase with the database name);)

// ==UserScript==

// @name Reload Filemaker

// @namespace www.syndeotech.com

// @description Reloads Filemaker page every 59 minutes

// @include http://myserver/fmi/iwp/cgi?-db=mydatabase&-loadframes

// ==/UserScript==

to = 59 * 60 * 1000; // Timeout 59 minutes in milliseconds

now = new Date();

refresh = new Date(now.getTime() + to);

window.setTimeout('document.location.href="http://myserver/fmi/iwp/cgi?-db=mydatabase&-loadframes"',to);

Share this post


Link to post
Share on other sites

This could be very helpfull so I really appreciate it. I have downloaded Firefox to try and test it but that's where I'm lost. Is this a script that I setup in Filemaker or Firefox?? Not sure what Grease Monkey is. If its not to much trouble could you give me more guidance on how to implement this cript. THANK YOU in advance! If its easier my mail address is todd.hector@directmailnetwork.com

Share this post


Link to post
Share on other sites

Here is how to use it (assuming you have already installed Firefox);)

1. Download and Install Greasemonkey from:

https://addons.mozilla.org/en-US/firefox/addon/748

2. In Firefox select Tools->Greasemonkey->New User Script

3. Enter:

Name: Reload Filemaker

Namespace: yourdomainname

Description: Reloads Filemaker page every 59 minutes

Includes: http://yourserver/fmi/iwp/cgi?-db=yourdatabasename&-loadframes

Click OK. Copy and paste this into the editor and save it:

to = 59 * 60 * 1000; // Timeout 59 minutes

now = new Date();

refresh = new Date(now.getTime() + to);

window.setTimeout('document.location.href="http://yourservername/fmi/iwp/cgi?-db=yourdatabasename&-loadframes"',to);

Replace yourservername with the URL that points to your server and replace yourdatabasename with the name of your Filemaker database.

CAVEAT: This only works with Firefox (Greasemonkey support is planned for a future version of Google Chrome. There is a version of Greasemonkey for IE, but I have not tested it with IE).

CAVEAT: If you are entering data at exactly 59 minutes after the last page load the screen may reload and your last entry may be lost.

Share this post


Link to post
Share on other sites

Your the best, THANKS, I'll try it and will let you know. It seems a little above my expertise but I'll give it a go!!

Share this post


Link to post
Share on other sites

hello petererik, your script is a wonderful solution.

we have one more challenge with our setup. we have multiple databases we'd like to remain logged into. is there a way to make one script for all databases on the same domain? if so please share here.

thanks :

Share this post


Link to post
Share on other sites

So now, with the new Firefox 37, the script no longer works and my sessions time out. Any solutions for that? I have been using the Greasemonkey script described for a long time and now, it doesn't work. I'm using Filemaker 12. Since I don't want to also purchase the FM 13 which no longer supports IWP (instant web publishing - bummer!).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By AlesD
      Hi I can not fiddle out how to make it work. I have tried several browsers with same result. We are using FM 12 server. I tried this file paths
      file:///C:/file.jpg
      C:/file.jpg
      file://localhost/C:/file.jpg
      and few others
       
      I'm using this code in the Web Viewer which is working fine in FM client but not in browser
      "data:text/html, <html> <head> <style type=text/css> " & table::style & " </style> </head> <body> <div class='thumb'> <span class='helper'></span><img class='thumb' src='" & table::ThumbnailPath & "'> </div> </body> </html>"  
      If it's caused by fact image is not present in web site folder as stated in document then my question is if it possible use unc network path in filename like file://///other_than_fmserver/networkpath/file.jpg. I wasn't successful either. 
      Any help appreciated
       
      Thank you
    • By KevinArevalo
      Good morning! I need some help getting something working.
       
      We have a company website, and we are trying to create a instant web publishing portal for our customers to login and view their open invoices. Pretty simple. We have all of our information on a FileMaker solution that is hosted with FileMaker Server 12. The problem is we can't get it to work the way we want it to. 
       
      This is our idea and how we kind of want it to work. We want the have our customers create their accounts/passwords on our actual website. We will store their account information on our web server. We will authenticate their login on our web server. Then, after they log into our website, we want to take their username, bypass the filemaker instant web publishing login page, and then set their username (which they used to log into our website, not filemaker) to a global variable or a field or something, we just need it in filemaker so we can do searches on it. We have the instant web publishing layouts built and we can get all that part working fine, we have the login authentication working on our site, that part is fine. It's just bridging the two together. 
      We are using WordPress to build the website, and our site is hosted on GoDaddy. Our problem is that we can't find a way to auto-login and bypass the login web publishing page. We currently have one account called "WebLogin" which we have been trying to use as a general login (since the actual customer login is authenticated on our website, not FileMaker) but we can't seem to bypass the page. I found this page through google searching: http://lnx.acidsoft.net/problemsolved/bypass-filemaker-iwp-login-via-url.html
      and tried to do it the way that he describes, but it is not working. It gives me an error saying:
      Bad Request
      The server could not process your request due to a missing command: ""
       
      And I get another dialog box that says: 
      Bad Request
      The server could not process your request because your session has timed out, been closed, or communication with the server has been lost.
      Please reselect the database to begin a new session. If you cannot open the database, please contact your database administrator.
       
      That is one of the problems, how can I resolve this?
       
      My other problems is we are trying to pass through the username that the customer uses to login to our website as a variable in filemaker or even set it to a field. I am not sure how to do this. Is this even possible?
      Thank you so much!
    • By djlane
      I have an application that was using IWP under FM Server 12, to allow my friends and friends of friends to upload their golf scores, and my system would calculate their USGA handicaps.
       
      After upgrading to FM Server 13, IWP not longer exists, and WebDirect does not support mobile devices.
       
      So, I set up an alternative server using FM12.
       
      A lot of guys that I don't have contact details for, used that IWP based system to upload golf scores. So I don't have a way to tell them all the new URL.
       
      Using the old IWP URL, you are presented with a screen that says "The requested page is not found. Check the URL you are using to access FileMaker WebDirect."
       
      I want to edit that page to add some additional information telling them the new URL etc. But I can't find any document with that content in any FM Server folder or sub folder. 
       
      Anyone know where I can find it ?
       
      thanks
    • By cchaski
      Hi, I have a databse hosted in IWP that uses Supercontainer for people to upload documents. The process works fine when I use FMPA 12 to access the hosted database, but when I go through the web browser (the IWP approach), the process does not work. A button "Upload Doc" calls a script that goes to the upload layout, generates the SC id code for the record, shows the webviewer with upload and delete buttons. This works fine when I am using FMP to access the database, but this does not work when I use IWP. When I click the button in IWP, nothing happens. Any ideas?? Thanks in advance!
    • By cchaski
      Hi, I have a databse hosted in IWP that uses Supercontainer for people to upload documents. The process works fine when I use FMPA 12 to access the hosted database, but when I go through the web browser (the IWP approach), the process does not work. A button "Upload Doc" calls a script that goes to the upload layout, generates the SC id code for the record, shows the webviewer with upload and delete buttons. This works fine when I am using FMP to access the database, but this does not work when I use IWP. When I click the button in IWP, nothing happens. Any ideas?? Thanks in advance.
×

Important Information

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