• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

Force user to log out?

Hi,

I have an Web application that I need to make the web users "log out"(to clear their authentication info) after they pressed a button. That means when they try to click on something on the website, the system should prompt them for user name and password again.

Is that possible?
I know there is this command "&login" can be used to force users to enter their name & password.
So is there any command I can use to force user log out instead?

Thanks a lot!
0
kspuea
Asked:
kspuea
  • 2
  • 2
  • 2
  • +1
1 Solution
 
snocrossCommented:
A workaround to do a logout in R4 can be found by clicking here: http://notes.net/46dom.nsf/7d6a87824e2f09768525655b0050f2f2/1d0aa4b04c754e8c8525657d005f1b9c?OpenDocument

basically (as copied from the above link):
****************************************
Create a "Logout Database" (in the same path or realm that the user logged into) that only lets a dummy user (ie with username=log password=off) login to it. Then you can create a logout link to this "Logout Database" and instruct endusers to use the dummy username and password. When the enduser logs into this "Logout Database" as the dummy user their real name and password will be cleared from the browser and replaced with the dummy username and password. Unfortunatley I don't know of any way to do this automatically (the end user is forced to type in the dummy username and password for this to work).
****************************************
0
 
snocrossCommented:
Another thing you could do which is not pretty; use javascript self.close() to close the browser.
0
 
DButlerCommented:
Under R4, and R5 when not using session-based authentication, you must close all instances of the browser to logout.

Try setting up session-based authentication -- under the "Domino Web Engine" subtab, under "Internet Protocols" in the server document.  Then issue a URL with "?login" appended -- as well as logging the user out, this will return the user to the home page as defined in the "HTTP" subtab.

Note that the next-to-last release of QuickPlace didn't work well on servers using session-based authentication.

For more information, see "Session-based name-and-password authentication for Web clients" in the Domino R5 Administration Help database.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
ghassan99Commented:
If you are using R5, and you have enabled session based auth, then just append '?logout' to the url, and u r there.

-Gus
0
 
DButlerCommented:
Big OOPS on my part -- that reference to appending "?login" was meant to read "?logout".  Apologies for not proofreading properly.  Thx ghassan99!
0
 
kspueaAuthor Commented:
Answer accepted
0
 
kspueaAuthor Commented:
Thanks very much, DButler & ghassan99!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now