Questions tagged [logout]

The process of terminating an authenticated session.

Wiki:

Ih the field of computer security Logging out or Log out is the process of terminating an authenticated session or purging an authenticated state.

A login or logon refers to the credentials required to obtain access to a computer system or other restricted area. Logging in and signing in is the process by which individual access to a computer system is controlled by identifying and authenticating the user through the credentials presented by the user.

Once a user has logged in, they can then log out or log off when access is no longer needed. To log out is to close off one's access to a computer system after having previously logged in.

Logging out may be performed in following ways:

  • Using an appropriate command
  • Clicking a website link
  • Powering off his or her workstation
  • Closing a web browser window
  • Leaving a website, or not refreshing a webpage within a defined period.

Tag usage:

The tag can be used for web based programming problems related to logging out. Theoretical questions with this tag should be avoided.

Read more:

2207 questions
298
votes
14 answers

Best practices for Storyboard login screen, handling clearing of data upon logout

I'm building an iOS app using a Storyboard. The root view controller is a Tab Bar Controller. I'm creating the login/logout process, and it's mostly working fine, but I've got a few issues. I need to know the BEST way to set all this up. I want to…
Trevor Gehman
  • 4,645
  • 3
  • 22
  • 25
184
votes
11 answers

javax.faces.application.ViewExpiredException: View could not be restored

I have written simple application with container-managed security. The problem is when I log in and open another page on which I logout, then I come back to first page and I click on any link etc or refresh page I get this exception. I guess it's…
l245c4l
  • 4,135
  • 9
  • 35
  • 40
147
votes
26 answers

phpmyadmin logs out after 1440 secs

In my local development Ubuntu box I use MySQL and phpmyadmin to work with the database. Whenever phpmyadmin is idle for 1440 secs (24min) the session expires. I lose my place and have to login and start over. I tried changing the…
sandeep
  • 3,061
  • 11
  • 35
  • 54
129
votes
6 answers

What method should I use for a login (authentication) request?

I would like to know which http method I should use when doing a login request, and why? Since this request creates an object (a user session) on the server, I think it should be POST, what do you think? But since the login request should be…
greg0ire
  • 22,714
  • 16
  • 72
  • 101
104
votes
7 answers

Prevent user from seeing previously visited secured page after logout

I have the requirement that the end user should not be able to go back to the restricted page after logout/sign out. But currently the end user is able to do that by the browser back button, visiting browser history or even by re-entering the URL in…
raaz
  • 12,410
  • 22
  • 64
  • 81
77
votes
29 answers

Why is PassportJS in Node not removing session on logout

I am having trouble getting my system to log out with PassportJS. It seems the logout route is being called, but its not removing the session. I want it to return 401, if the user is not logged in in specific route. I call authenticateUser to check…
Jeffrey Chen
  • 1,039
  • 2
  • 11
  • 14
74
votes
11 answers

How to manually log out a user with spring security?

Probably the answer is simple: How can I manually logout the currently logged in user in spring security? Is it sufficient to call: SecurityContextHolder.getContext().getAuthentication().setAuthenticated(false); ?
Erik
  • 11,944
  • 18
  • 87
  • 126
71
votes
13 answers

Facebook Oauth Logout

I have an application that integrates with Facebook using Oauth 2. I can authorize with FB and query their REST and Graph APIs perfectly well, but when I authorize an active browser session is created with FB. I can then log-out of my application…
Derek Troy-West
  • 2,469
  • 1
  • 24
  • 27
65
votes
9 answers

http basic authentication "log out"

HTTP basic authentication credentials are stored until the browser is closed, but is there a way to remove the credentials before the browser is closed? I read about a trick with HTTP 401 status code, but it seems to work not properly (see comment…
deamon
  • 89,107
  • 111
  • 320
  • 448
57
votes
9 answers

ASP.NET Windows Authentication logout

How do you logout when using Windows authentication in ASP.NET like this web.config? I've already tried the following unsuccessfully. It redirects, but does not log out the user. void logoutButton_Click(object…
Robert
  • 14,999
  • 4
  • 39
  • 46
46
votes
3 answers

django rest framework - token authentication logout

I have implemented the Token Authentication according to the django rest framework Docs. Form what I read, the Token Authentication of DRF is quite simple - one token per user, the token doesn't expire and is valid for use always (am I right?). I…
45
votes
8 answers

How can I sign out a devise user from the Rails console?

My devise users are "database_authenticatable" and "token_authenticatable". I've tried deleting the "authentication_token" field in the database for that user from the console, but they still seem to be able to use their existing auth token.…
joseph.hainline
  • 24,829
  • 18
  • 53
  • 70
45
votes
13 answers

django logout redirects me to administration page

I have provided a simple login functionality. For logout, I tried to use the built-in one. This is my urls.py: (r'', include('django.contrib.auth.urls')), And this is my template file: {% if user.is_authenticated %} logged in as {{ user }} (
ducin
  • 25,621
  • 41
  • 157
  • 256
36
votes
8 answers

google account logout and redirect

I am using openid to log the user in.(google account only). Now I have a sign out link in my page, which on clicking, I want the user to be logged out of google accounts and the page to be redirected to my home page. can this be done…
Shrinath
  • 7,888
  • 13
  • 48
  • 85
36
votes
3 answers

ASP.Net MVC 5 w/identity 2.2.0 Log off not working

I am using a the basic login on a test ASP.Net MVC 5 site (for an internet site). The login works fine but when I try to logout it doesn't happen. The logout link does call the following controller action: public ActionResult LogOff() { …
John S
  • 7,909
  • 21
  • 77
  • 145
1
2 3
99 100