dbTalk Databases Forums  

FMPro8 - Logging out of an IWP database

comp.databases.filemaker comp.databases.filemaker


Discuss FMPro8 - Logging out of an IWP database in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James
 
Posts: n/a

Default FMPro8 - Logging out of an IWP database - 11-05-2005 , 10:25 PM






Hi FileMaker Folks -

Continuing to explore FMPro8, I published a quick and dirty flat file to
the Web using IWP. I want to collect some records, controlling user
actions with web-compatible buttons. My login is defaulted to Guest and
the privelege set is Entry Only. Nearly everything seems to work okay.
I can log in with Safari under Localhost, and my "New Record" button
works fine. However, I cannot seem to script a "Logout When Finished"
button. I've tried several likely-looking steps including Exit
Application (which I thought was a little extreme but it says it's web
compatible) and no joy. My logout script commits the new record okay,
but continues to display it (I would rather it did not). When I exit
Safari and try to close my database file, FMPro says Guest is still
logged in. If I access the database again by reopening Safari, it says
Guest is logged in twice! Obviously this is going to cause a problem.
There is a Logout button on the status area you can display in IWP, but
I'd rather not show the user all those controls. How to log out by script?

Many thanks in advance for your continued kind assistance -
James


Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: FMPro8 - Logging out of an IWP database - 11-05-2005 , 11:23 PM






Interestingly enough, while FM7&8 are happy enough to show you the IWP home
page in situations where you *don't* want to show it (for example, when
timing out of a session), there is no way to return you there when you
*want* to go there. If you link to the IWP home page in a button, for
example, it will open up in a new window.

There is also the limitation in that FileMaker will not close the current
browser window. (It may not be able to do this because of JavaScript
security limitations.)

The best workaround I can suggest is that you take the user to a "You've
Logged Out" page which signals the end of their session but does not
otherwise provide a mechanism for them to return to the database.

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote

Quote:
Hi FileMaker Folks -

Continuing to explore FMPro8, I published a quick and dirty flat file to
the Web using IWP. I want to collect some records, controlling user
actions with web-compatible buttons. My login is defaulted to Guest and
the privelege set is Entry Only. Nearly everything seems to work okay. I
can log in with Safari under Localhost, and my "New Record" button works
fine. However, I cannot seem to script a "Logout When Finished" button.
I've tried several likely-looking steps including Exit Application (which
I thought was a little extreme but it says it's web compatible) and no
joy. My logout script commits the new record okay, but continues to
display it (I would rather it did not). When I exit Safari and try to
close my database file, FMPro says Guest is still logged in. If I access
the database again by reopening Safari, it says Guest is logged in twice!
Obviously this is going to cause a problem. There is a Logout button on
the status area you can display in IWP, but I'd rather not show the user
all those controls. How to log out by script?

Many thanks in advance for your continued kind assistance -
James




Reply With Quote
  #3  
Old   
James
 
Posts: n/a

Default Re: FMPro8 - Logging out of an IWP database - 11-06-2005 , 12:55 AM



Bill Marriott wrote:
Quote:
Interestingly enough, while FM7&8 are happy enough to show you the IWP home
page in situations where you *don't* want to show it (for example, when
timing out of a session), there is no way to return you there when you
*want* to go there. If you link to the IWP home page in a button, for
example, it will open up in a new window.

There is also the limitation in that FileMaker will not close the current
browser window. (It may not be able to do this because of JavaScript
security limitations.)

The best workaround I can suggest is that you take the user to a "You've
Logged Out" page which signals the end of their session but does not
otherwise provide a mechanism for them to return to the database.

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote in message
news:WAfbf.14253$Jo3.9166 (AT) tornado (DOT) socal.rr.com...

Hi FileMaker Folks -

Continuing to explore FMPro8, I published a quick and dirty flat file to
the Web using IWP. I want to collect some records, controlling user
actions with web-compatible buttons. My login is defaulted to Guest and
the privelege set is Entry Only. Nearly everything seems to work okay. I
can log in with Safari under Localhost, and my "New Record" button works
fine. However, I cannot seem to script a "Logout When Finished" button.
I've tried several likely-looking steps including Exit Application (which
I thought was a little extreme but it says it's web compatible) and no
joy. My logout script commits the new record okay, but continues to
display it (I would rather it did not). When I exit Safari and try to
close my database file, FMPro says Guest is still logged in. If I access
the database again by reopening Safari, it says Guest is logged in twice!
Obviously this is going to cause a problem. There is a Logout button on
the status area you can display in IWP, but I'd rather not show the user
all those controls. How to log out by script?

Many thanks in advance for your continued kind assistance -
James





Hi Bill -

And many thanks for your quick response. I'm sure your suggestion will
solve the issue of the newly created record still being displayed, but I
wonder if, after five people have logged in and out, FMPro will believe
that the five concurrent session limit has been reached. Would the
database have to be closed and relaunched? That's the problem I
referred to above, and it would certainly mess up my plans. I guess I
will find out when I test it hosted, and perhaps I will have to show
that complex status area after all, just so people can log out.

Thanks very much again -
James



Reply With Quote
  #4  
Old   
Bill Marriott
 
Posts: n/a

Default Re: FMPro8 - Logging out of an IWP database - 11-06-2005 , 02:11 AM



For that side of things, perhaps it would work if, after you take them to
the blank layout, you use the "Relogin" script command to force a log in
with an invalid username and password?

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote

Quote:
Bill Marriott wrote:
Interestingly enough, while FM7&8 are happy enough to show you the IWP
home page in situations where you *don't* want to show it (for example,
when timing out of a session), there is no way to return you there when
you *want* to go there. If you link to the IWP home page in a button, for
example, it will open up in a new window.

There is also the limitation in that FileMaker will not close the current
browser window. (It may not be able to do this because of JavaScript
security limitations.)

The best workaround I can suggest is that you take the user to a "You've
Logged Out" page which signals the end of their session but does not
otherwise provide a mechanism for them to return to the database.

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote in message
news:WAfbf.14253$Jo3.9166 (AT) tornado (DOT) socal.rr.com...

Hi FileMaker Folks -

Continuing to explore FMPro8, I published a quick and dirty flat file to
the Web using IWP. I want to collect some records, controlling user
actions with web-compatible buttons. My login is defaulted to Guest and
the privelege set is Entry Only. Nearly everything seems to work okay. I
can log in with Safari under Localhost, and my "New Record" button works
fine. However, I cannot seem to script a "Logout When Finished" button.
I've tried several likely-looking steps including Exit Application (which
I thought was a little extreme but it says it's web compatible) and no
joy. My logout script commits the new record okay, but continues to
display it (I would rather it did not). When I exit Safari and try to
close my database file, FMPro says Guest is still logged in. If I access
the database again by reopening Safari, it says Guest is logged in twice!
Obviously this is going to cause a problem. There is a Logout button on
the status area you can display in IWP, but I'd rather not show the user
all those controls. How to log out by script?

Many thanks in advance for your continued kind assistance -
James





Hi Bill -

And many thanks for your quick response. I'm sure your suggestion will
solve the issue of the newly created record still being displayed, but I
wonder if, after five people have logged in and out, FMPro will believe
that the five concurrent session limit has been reached. Would the
database have to be closed and relaunched? That's the problem I referred
to above, and it would certainly mess up my plans. I guess I will find
out when I test it hosted, and perhaps I will have to show that complex
status area after all, just so people can log out.

Thanks very much again -
James




Reply With Quote
  #5  
Old   
James
 
Posts: n/a

Default Re: FMPro8 - Logging out of an IWP database - 11-06-2005 , 02:55 AM



Bill Marriott wrote:
Quote:
For that side of things, perhaps it would work if, after you take them to
the blank layout, you use the "Relogin" script command to force a log in
with an invalid username and password?

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote in message
news:VNhbf.4246$Hs.2879 (AT) tornado (DOT) socal.rr.com...

Bill Marriott wrote:

Interestingly enough, while FM7&8 are happy enough to show you the IWP
home page in situations where you *don't* want to show it (for example,
when timing out of a session), there is no way to return you there when
you *want* to go there. If you link to the IWP home page in a button, for
example, it will open up in a new window.

There is also the limitation in that FileMaker will not close the current
browser window. (It may not be able to do this because of JavaScript
security limitations.)

The best workaround I can suggest is that you take the user to a "You've
Logged Out" page which signals the end of their session but does not
otherwise provide a mechanism for them to return to the database.

Bill

"James" <jbusch (AT) pixi (DOT) com> wrote in message
news:WAfbf.14253$Jo3.9166 (AT) tornado (DOT) socal.rr.com...


Hi FileMaker Folks -

Continuing to explore FMPro8, I published a quick and dirty flat file to
the Web using IWP. I want to collect some records, controlling user
actions with web-compatible buttons. My login is defaulted to Guest and
the privelege set is Entry Only. Nearly everything seems to work okay. I
can log in with Safari under Localhost, and my "New Record" button works
fine. However, I cannot seem to script a "Logout When Finished" button.
I've tried several likely-looking steps including Exit Application (which
I thought was a little extreme but it says it's web compatible) and no
joy. My logout script commits the new record okay, but continues to
display it (I would rather it did not). When I exit Safari and try to
close my database file, FMPro says Guest is still logged in. If I access
the database again by reopening Safari, it says Guest is logged in twice!
Obviously this is going to cause a problem. There is a Logout button on
the status area you can display in IWP, but I'd rather not show the user
all those controls. How to log out by script?

Many thanks in advance for your continued kind assistance -
James





Hi Bill -

And many thanks for your quick response. I'm sure your suggestion will
solve the issue of the newly created record still being displayed, but I
wonder if, after five people have logged in and out, FMPro will believe
that the five concurrent session limit has been reached. Would the
database have to be closed and relaunched? That's the problem I referred
to above, and it would certainly mess up my plans. I guess I will find
out when I test it hosted, and perhaps I will have to show that complex
status area after all, just so people can log out.

Thanks very much again -
James





Hi again Bill -

I tried that script step, but without the invalid login. I'll check it out.

Thanks again -
James



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.