« Cross-tab reports made easy | Main | Miscellaneous tips »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341d284e53ef00d83526498469e2

Listed below are links to weblogs that reference How to bypass the IWP login page:

Comments

Thanks for your examples. They use a couple of special terms like "-startsession" and "-authdb". Do you know which part of the FileMaker Web Publishing system interprets this terms - and which other terms are available, their syntax etc? Maybe they could be used for some control of the web publishing system?

Best regards Mogens Brun
FM Integrator

I extracted these parameters from the source code of the IWP login page with some help of Firefox DOM Inspector, I think. There can be some other parameters, but I have no idea where to get them :) except that from other IWP pages maybe. This would be a rather tedious job though.

Thanks for this explanation but is there some way to make this url emailable?

I've gotten my direct login test url working in a web page but when I copy the url to an email (or a web browser address bar) it does not work.

Ive tried the unencoded and encoded (%2F, etc.) versions and neither work.

I don't understand why this will work as a clickable link but not a direct url.

This is great! Thanks so much for the help, this is working so well for our users to more easiliy access the databases.

The only issue we have found is if a user tries to access a 2nd database during the same browser session; they end up back in the original database. I'm guessing this is a cookie-related issue? Is there any way to force clearing the cookies and starting a new session?

Thanks again for your help!

-Rob McLear

Did anyone manage to get round the cookie problem?

To icarux: try replace in the URL with actual ampersands.

To Rob and Nick: if the user logs out the first database using the button on the status area then he/she will be able to connect to another just fine. Does this solve the problem?

I've used some Lasso code in custom login pages before to clear out the cookies - works great!

Here it is:

[cookie_set: 'http-session'='', -expires='-1', -path='/fmi/iwp']
[cookie_set: 'fmi-cookie'='', -expires='-1', -path='/']

- John

With regards to the cookie solution, how is this code implemented? Where abouts in my html page do I use this code?

Does this login bypass solution still work in FMSA 9? I keep ending up on the IWP home page.

It works! Absolutely brilliant, Mikhail!

Someone from Technet directed me here when I asked how to do this. Thanks so much!

Paul

I tried implementing this technique to login as a guest and a user with an account. It worked great when I tried to connect to only one database, but when I created links to two separate databases odd things happened. whichever database link I used first in a session was the one I was redirected to when I clicked on the 2nd link. If I switched to a different browser and started w/ the 2nd link, that was the database that was opened when I clicked on the first link. Any help on insight will be appreciated. Here are pages w/ the links to the Video Resource Database and the Claims Database:

http://www.montgomeryschoolsmd.org/departments/development/index.shtm

http://www.montgomeryschoolsmd.org/departments/development/teams/admin/admin1.shtm

Hi David,

Sorry, I tried to see why this may happen and what could be the remedy, but didn't spot anything.

Since these links appear to be public, why not to simply allow guest access to these files?

Thank you so much for sharing this neat workaround Mikhail. It has solved a problem for a new shared database in one go!

We originally had both database set for guest access, but we still had the problem of the 2nd link redirecting to the 1st database. Very puzzling.


Great work around! I am using this with Filemaker 9 Advanced Server (OS 10.5) and it works as advertised. The only issue I can't seem to get right is on Logout from IWP, I am returned to the iwp_home.html page. So I replaced the default page with the new page based on your schema. This works great, but I can't display any graphics on this page. I've tried hard coding the path to the image, but this doesn't work either. Any idea how to code an img src (or where to locate the image file) to show on the iwp_home.html custom page?

Your solution is much better than the other ideas that are out there. Thanks for sharing this.

I cannot Log in to a file as an (predefined) authenticated user via link. This is what I am using:

http://localhost/fmi/iwp/cgi?dbpath=%2Ffmi%2Fiwp%2Fcgi%3F-db%3DEstimate_Tracker%26-startsession&acct=account&name=test&password=&login=test&-authdb

For local host I am using our internal ip address of the filemaker server
Account Name = test
Password = test

Any thoughts?

I think what's missing is the “test” password. It should be right after “password=”.

We would like to be able to pass other parameters to an IWP application, such as a record number, so that users can be dynamically directed to a record when they log in. Does anyone have any ideas on how this might be done via a URL?

Thanks Mikhail! I've been agonizing over how to do this. You are awesome!

Jenifer, not sure how you'd do it via URL, but you can set a start script in the FMP database to take users to a particular record when they log in. You can even make it send a particular user to a particular record depending on info in your database or based on group privileges.

Thanks, a great page you are running.

What if I want at link to force the username, but not the password?

You can hardcode only one option and let user fill in another. It's a bit harder to do with a link, but with a form it's simple: you hide the “name” input using the "hidden" attribute (cannot post HTML codes here) and leave only the password. With a link it would require some JavaScript to work, I think.

Hi,

I would like to know, how to pass a script parameter in an IWP URL ???

I need that my opening script, would analyse the script parameter.

Sincerely, Joel.

Hi Joel,

I don't think its possible. That is opening IWP is roughly same as opening a file in FileMaker itself. It can run a startup script, but cannot accept a parameter for it. You'd need something CWP-like for this.

Kind regards, Mikhail.

Mikhail,

If I do something in CWP,
how do I get back in my IWP Site with my parameter ???

I have tried to make an other IWP FM File, with an opening script, that execute an external script with the parameter, and that is suppose to put me on the correct layout (on the regular FM File); but on the web it doesn't switch from on page to another !!!

Have you ever try to do that ??? Do you know the Solution ???

Sincerely, Joel.

No, I don't know how to solve this. What kind of parameter is it? Is it something that can be deduced from the user name or something else that can be read with Get() functions (e.g. different layouts for FM and web clients)?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment