Questions tagged [logout]

1

votes
4

answer
760

Views

Symfony PHP Logout not working

I have a logout function that worked in another project but for some reason doesn't work in the project I am currently working on. It looks like it just refreshes the page. I checked the official documentation of Symfony https://symfony.com/doc/current/security.html but to no avail. Hope you guys ca...
Mr J.
1

votes
0

answer
171

Views

How to quickly sign out all the users in an ASP.NET MVC application via Identity?

While the answer here is fine for one or a couple of users: ASP.net Identity 2.0 Sign-out another user it does not really scale, it can take a lot of time: https://msdn.microsoft.com/en-us/library/dn497517(v=vs.108).aspx I am thinking about SignalR forcing a refresh on the client and making a tempor...
Ehouarn Perret
1

votes
0

answer
505

Views

Keycloak logout not working for “bearer-only” application exposing REST services

I am unable to logout an user. The logout works for a 'confidential' applications but it doesn't for a 'bearer-only' application (the REST services are still accessible after logout). I have the following configuration: I have one 'database' client application defined in Keycloak having access type...
Dan Nemes
1

votes
0

answer
18

Views

inactiveInterval invalidation in servlet

In my java EE project i'm trying to make it so, that if a user is inactive for more than 60 minutes the session will invalidate. but i'm not sure in which servlet/jsp to put my session.setMaxInactiveInterval(3600); if(session.getMaxInactiveInterval() > 3600){ session.invalidate(); request.getRequest...
MasterTolboll
1

votes
1

answer
212

Views

Facebook WPF Application Logout using WebBrowser

I am developing a Facebook WPF application for my senior design project in college. I've never coded in C# or developed a WPF application before this. Right now I'm trying to implement logout functionality. I'm using a WebBrowser to do this, and the documentation seems to say that the method of doin...
Laci Felker
1

votes
1

answer
39

Views

Is it possible to save additonal data in Sessions Table in CakePHP 3?

I need to do the following tasks in CakePHP 3: Logout users manually Limit the number of sessions to one per user I'm using database sessions to accomplish that. Is it possible to save additional data in sessions table? If yes, could you give me an example please?
thapachaki
1

votes
0

answer
53

Views

Logout from Social Sites using javascript

We are working on a solution to provide Social Login to our users. Our users are going to shared machine (for various business reason) across various locations / geographies. We have observed that not all Social providers provide a mechanism to logout user from their site. For example, if as a user...
1

votes
1

answer
76

Views

azure conditional access logout after a specified time

I want to set an expiry time for my web app so that after 1 hour the user will automatically be logged out. It seems that azure now have a new feature called 'conditional access'. Firstly I have to have a premium account (so yet more money) and secondly I cant find anything in the documentation th...
proteus
1

votes
1

answer
104

Views

Jasig Cas ticket validation on client web application logout

My web application is integrated with a portal that use cas authentication. Logout is possible in two ways: on my web application (I first invalidate my session and then logout on portal page) or directly by portal (in this case session on my web application continues to exist - there are no single...
Fra83
1

votes
1

answer
38

Views

Control another user's session in PHP

Is it possible in PHP to select a particular user from a database and edit their session other than the current user? Say in the case of when an account type changes or account is deleted or disabled, force session_destroy of that user. If so how?
8host
1

votes
1

answer
378

Views

IdentityModel OIDC Client Log Out

I've a native Windows Client application which is authenticating user against Identity Server. Login Works fine. However, I'm not able to sign out the user. Here is the link of the source code that I am using I tried logoutAsync method with no luck. Once user is signed in, whenever I start the appl...
Himal Patel
1

votes
1

answer
806

Views

wc_logout_url without confirmation AND redirect to current page in Wordpress WooCommerce

I would like to redirect the user that is logging out to the same page. For instance: user is on category page and is logging out. After logging out I would like to have that the user is still on that specific category page (or any page the user is on). Now it will redirect the user to the homepage....
JeremyWegen
1

votes
0

answer
139

Views

Avoiding Memory Leak while referencing Activity from onResponse of Retrofit2 callback

Suppose we have a retrofit Callback as follows: Callback callback = new Callback() { @Override public void onResponse(Call call, Response response) { mProgressBar.dismiss(); if (response.code() == 401) { Toast.makeText(getApplicationContext(), 'Invalid session, logging out', Toast.LENGTH_LONG).show(...
Josh
1

votes
2

answer
51

Views

display the “logout” button when the user is logged in and 'connect' when he is not with PHP/MySQL

layout.phtml Hello Logout Sign up Connect I want to display logout button when users logged in and connect button when they are not logged in. But when the form data is sent, it only displays the connect button. userconnect.phtml There is this html form. userconnect.php displays bool(false). Could...
Pia
1

votes
1

answer
272

Views

How to Create login and logout using Vapor (Basic Authentication)

I want to create login and logout methods and routes. I've done already basic authentication but now I'm stuck how to continue. How should I do that, should I use sessions? I'm using Vapor 3, Swift 4 and PostgreSQL and followed this tutorial https://medium.com/rocket-fuel/basic-authentication-with-...
Anskulainen
1

votes
0

answer
135

Views

How to logout user in spring security stateless (jwt token)?

I create a microservice system by spring,In my project I have 3 front ends and multi microservices, These front ends use (and store into cookie) jwt token to get resource from my microservices. My user login scenario: When user want login from front end one I redirect to my live project (another fr...
Yaqub Abdi
1

votes
1

answer
111

Views

Offline logout with JWT auth on mobile

Does anyone have a particular technique for offline logout on a mobile application that has a jwt token based authentication ? Or do you have any advice ?
rygelouv
1

votes
1

answer
42

Views

Auto-detect the logout in browser tabs?

I have multiple tabs opened of a website in a browser. My question is if I logout from one window 'How do other windows will detect that user has been logged out?' I am using python/django for development The approach I am using is: function user_checking(){ $.ajax({ url: /check_user_login, type: '...
Rai Ammad Khan
1

votes
0

answer
63

Views

After logout, when click on back button the secured last visited page appears due to cache issue in october cms. How to prevent this?

Hi I am new to ocotber cms. I have observed that after I logout(page redirects to home page), when I press back button the page redirects to the last visited secured page. However when I click on any of the link on that page, the page refreshes and redirect again to home page. I don't want secured...
Manu Saxena
1

votes
0

answer
502

Views

Custom logout url and redirection in Woocommerce

In Woocommerce, I am using below code customizing some redirections. Everything is working fine. I have jus a problem with logout that is not working when using ?customer-logout=true in the menu, because it's redirected to /dashboard/ page. This is my code for redirection: add_action( 'parse_requ...
user8083042
1

votes
0

answer
54

Views

my logout of a user does not work in symfony 3.4

I can not disconnect.There I have a doctor space, and when I finish with this space, I click on a disconnect button, and it redirects me to the home page.Then I have a user who consults the profile of a doctor and then decides to make an appointment, and when he chooses his date and time and arrives...
Mohamed Sacko
1

votes
1

answer
28

Views

How to properly disable Wordpress sign out confirmation for users?

I'm building a marketplace on Wordpress and trying to figure out how to disable Wordpress default logout confirmation screen after the user click on sign out. The code I'm using to sign out is
Volvera
1

votes
0

answer
54

Views

How to proper logout and navigate using Firebase and lazy loading

How in proper way logout and navigate user to the main view using Firebase AuthState? I've got simple content layout which consist of header, router-outlet and footer. Header and footer content change depending on whether the user is logged in. In routing I'm using lazyloading (and import it in AppM...
pawel.i
1

votes
0

answer
69

Views

Passport.js logout session destroy works with POSTMAN but not with the React app. How to fix this

I have an Express backend and trying to set up Passport authentication. Login process works fine and the session token is stored as a cookie. When logging out, clearCookies don't destroy the cookies in the browser. However the process works just fine when I make the calls via Postman. I've set { wit...
ongelo
1

votes
1

answer
35

Views

Expected Behaviour of ForgeRock (for SSO) login and logout

My company has implemented SSO with ForgeRock. We have integrated two applications(say app1 and app2) login with it and number of application is going to grow. Queries on expected working : Login Behaviour: User logs in app1 and starts doing something in it, Opens new tab/window hits URL app2 url. S...
nanosoft
1

votes
1

answer
97

Views

Logout doesn't work with Laravel JWT-auth

I'm using JWT-auth with Laravel Framework to authenticate a user. Laravel is used as server-end framework and the fore-end code is in the framework which is developed by our own. So we use api not web to realize authentication. Login works well in this environment, whereas logout and refresh token c...
Vogel_guo
1

votes
0

answer
19

Views

How to logout a user from Wordpress site who was logged in using oauth

My Site (mysite.com) uses Spring OAuth2 Client registration to Authenticate and Authorize a user using a Wordpress Site (thatsite.com), and after login with correct credentials, wordpress site redirects that user back to my site along with token details, this flow is working fine. So with this proc...
imvishalpatel18
1

votes
1

answer
24

Views

Federated logout on single page application using dotcore api

We are using ItFoxTec library for saml authentication. Federated login is working fine. Problem is with federated logout. scenario is like: We have two application named as mvcapp and singlepageapp(angular). When i click on login button on mvcapp, i redirect to my IDP login page and get back to mvc...
Dalip Choudhary
1

votes
2

answer
1.9k

Views

How to implement logout in Struts application

I have J2EE app on which the logout is not implemented properly, my intention is to close all DB resources once the user logs out. Not sure if session.invalidate(); will really help, I will try it today. Please advice what would be the best to way to implement logout so that all valuable resources a...
Ravi Gupta
1

votes
1

answer
253

Views

What is the proper way of handling multiple account login from the same machine & browser?

I'm wondering if anyone knows how exactly Gmail, Hotmail, Facebook etc handles following scenario. (NOTE: Assuming Cookie is shared between tabs) Opens two login page to the application. User 1 logs in the domain. User 1 changes some data without saving it. User 2 logs in the domain in a separate ta...
BlueFox
1

votes
1

answer
407

Views

CakePHP + HTML5 Prefething = Logging Out

After adding HTML5 Prefetch links to head section of default.ctp, all firefox users (in CakePHP application im working on) are keep getting logged out after next page refresh. Any ideas how to make CakePHP prefetch-friendly? Here is example prefetch links placed inside head of the page:
Asgraf
1

votes
2

answer
5.2k

Views

Facebook JS SDK for Open Graph: Logout not working!

For some reason when I call FB.logout();, the user does not actually get logged out of Facebook. Why might this be? No js errors get thrown, and I can step through the code as it runs through the SDK... it just doesn't successfully log out.
Josiah Kiehl
1

votes
2

answer
5.1k

Views

Strange problem with session.invalidate()

I have strange issue with logging in and out. I've implemented container-based security. I have Login/Logout links on all my pages (through template.xhtml) that are rendered or not based on backing bean boolean property (it's actually method isLoggedIn()). Also in backing bean I have method logout w...
l245c4l
1

votes
1

answer
167

Views

Get the name of the openid provider

Using OpenID for authentication. How do I get the name of the openid provider once the user is logged in? The aim would be to pop up a relevant message with the name of the openid provider when the user clicks logout. e.g, 'Please logout of your google account' if the user is logged in using google...
user275157
1

votes
2

answer
7.6k

Views

Facebook connect logout using link

Customer can sign in to my web app via normal login and facebook connect. So far so good. FB.init({appId: '', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.login', function(response) { window.location.reload(); }); But when they come to logout, I want the customer to click on t...
i need help
1

votes
1

answer
997

Views

automatically logging users out of asp.net website on close

I recently inherited an asp.net website made up of multiple .aspx and .ascx pages and being rather new to web development and especailly asp.net. I have the site create a cookie upon login to automatically log users back in if the page times out on them while they're entering information. I need the...
Aaron Arnott
1

votes
2

answer
739

Views

sharepoint 2007 login/logout statistics

I want to track my employee in/out time within sharepoint. Here is what i want to do Employee will singin on Sharepoint when they in and logout (could be singin evening once again) when they leaving. I want to capture their login and logout timing on sharepoint context using some simple method. I re...
baluchen
1

votes
1

answer
1.7k

Views

Be on login page after Logout when press back button of Browser in rails

I have observe Facebook and Gmail that when we logged out it redirects us to the login page, but the interesting is that when we hit back button it still not go to inbox page. I have search in google and got something to set attribute 'Cache-control' in header. But I don't know how can we implement...
Anand Soni
1

votes
2

answer
2.1k

Views

Facebook PHP SDK logout function

can you explain to me how can i call logout function of facebook php sdk, without that logged user have to click on logout link generated with the $facebook->getLogoutUrl.
user198003
1

votes
1

answer
815

Views

php scrips allow one login only, if i logout I can not login again?

I am having a problem with login php script. the scripts allows me to login to the page only once, once logout, I can not login again? I look at it seems fine interms of syntax,here is sample of my code session_start(); if(isset($_POST['submit']))//if the user is not logged in see if they have submi...
sareeye

View additional questions