Login out a web user

I have an application which I want users to be able to logout of. I am using session based name and address authentication.I used the following code in an action button:

http://Domain.com/folder/database.nsf?Logout

and it worked fine and closed the browser.

However I now need it to work in a button on the form and the same code does not work.

Does anybody know why?

Thanks

Tricia

Subject: Login out a web user

what is the result of your code ?

Subject: RE: Login out a web user

When used on a button on the form it just refresh’s the page.

When used in an action button it closes the browser wirh a message.

"The web page you are viewing is trying to close the window.

Do you want to close this window" Yes/No

Subject: RE: Login out a web user

Try this Formula :@URLOpen(“http://Domain.com/folder/database.nsf?Logout”)

Subject: RE: Login out a web user

Thanks

That worked a treat