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
34
votes
10 answers

Android Facebook SDK: Check if the user is logged in or not

I'm have a feature on my Android app where the user authorizes the app and shares a link. I also need to give an option for the user to logout of facebook and I need to conditionally disable this button if the user is not logged int (or not…
Jay Sidri
  • 6,271
  • 3
  • 43
  • 62
33
votes
4 answers

How to logout when using .htaccess (and .htpasswd) authentication?

Possible Duplicate: HTTP authentication logout via PHP Hi I have a some functionality on my website protected using .htaccess and .htpasswd. When users attempt to access this, they get prompt to enter details. They enter their details and get in…
TigerTiger
  • 10,590
  • 15
  • 57
  • 72
30
votes
12 answers

Prevent Browser's Back Button Login After Logout in Laravel 5

I am new to Laravel 5 and trying to make a simple authentication page. My problem is i can logout properly after i click to logout link but if i click to back button of the browser, still able to see the content of the page which actually should not…
Tartar
  • 5,149
  • 16
  • 63
  • 104
30
votes
2 answers

How to route without a templateUrl?

Ok. I have a url setup to log a user out. On the server, there is no html. The session on the server simply gets destroyed, and then the user is redirected to an address. This works fine with plain html, but with Angular i am having issues. I've…
Lee Olayvar
  • 3,660
  • 6
  • 30
  • 36
29
votes
7 answers

Logging out via a link in Laravel

I have a "Logout" link in my top navigation bar. I'm wondering how I can make it so that while I'm logged in, it'll log me out when I click on it and return me to the homepage. To be specific, what changes to which files do I make in Laravel? Also,…
Ben Kao
  • 621
  • 3
  • 8
  • 18
29
votes
3 answers

Twitter API - Logout

I'm using OAuth in my web app, and users can login with twitter. I want to add "switch twitter account" button, which actually clears the session and then opens the authorize_url. As clearing the session in my web app doesn't log out of twitter, the…
elado
  • 8,510
  • 9
  • 51
  • 60
27
votes
4 answers

Activity.finishAffinity() vs Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK

In Android, if you want to clear your current Activity stack and launch a new Activity (for example, logging out of the app and launching a log in Activity), there appears to be two approaches. Are there any advantages to one over the other if your…
Craig Russell
  • 3,534
  • 3
  • 26
  • 27
25
votes
9 answers

How to add logout feature to an OpenID enabled site?

I have recently added OpenID login to my website. But I don't know how to add the logout feature. For example, on clicking the Sign In button I am able to show the login form of the selected OpenID provider, for example Google Account. However, I…
Madhu
  • 1,176
  • 1
  • 13
  • 18
24
votes
1 answer

Logging a user out when using HTTP Basic authentication

I want users to be able to log in via HTTP Basic authentication modes. The problem is that I also want them to be able to log out again - weirdly browsers just don't seem to support that. This is considered to be a social-hacking risk - user leaves…
Keith
  • 150,284
  • 78
  • 298
  • 434
24
votes
8 answers

Logout clear SharedPreferences

I have a login page that saves username and password to SharedPreferences. I have another Activity class that includes a logout button. I want to clear SharedPreferences when I click the logout button. The problem is that I don't get the…
HurkanSeyhan
  • 374
  • 2
  • 3
  • 14
23
votes
6 answers

Call to j_spring_security_logout not working

I'm trying to setup the logut of my application with j_spring_security_logout but for some reason it's not working, I keep getting a 404 error. I'm calling the function like this: ">
carcaret
  • 3,238
  • 2
  • 19
  • 37
22
votes
6 answers

Remotely destroy a session in php (user logs in somewhere else)?

Hey, I'm trying to get my php website to basically "log out" (session_destroy()) when the same user logs in somewhere else. Is there a way to do this? To remotely destroy a specific session? Thank guys! Scott
twistedpixel
  • 1,212
  • 4
  • 14
  • 33
22
votes
1 answer

ASP.NET MVC truly log off with Forms Authentication

I have a logoff action on a controller as so: public ActionResult Logoff() { var x = Request.IsAuthenticated; var y = User.Identity.IsAuthenticated; FormsAuthentication.SignOut(); Session.Abandon(); …
CodeGrue
  • 5,865
  • 6
  • 44
  • 62
22
votes
1 answer

Laravel Inactivity time setting

When user logged-in and remains inactive, How many seconds after that system logouts the user automatically? How to change this setting?
syraz37
  • 756
  • 2
  • 6
  • 11
22
votes
5 answers

How to use capybara in rspec to click on a dropdown option

I am using ruby on rails 3.2.3 and capybara to help creating request spec. My goal is to create a spec request that test the log out. The web page:
u19964
  • 3,255
  • 4
  • 21
  • 28