FAQ Database Discussion Community


JSP session.invalidate() vs request.logout()

jsp,session,tomcat,logout,invalidate
I have a SignOut button on my jsp page. (Tomcat 8.0.15) session.invalidate() or request.logout() which one is better for signing-out/terminating the session, what is the main difference? Should I use both?...

Facebook Logout in Objective C With FBSDKLoginManager LogOut Method

ios,objective-c,facebook,logout
I integrated new Facebook latest SDK of Objective C. In my app, I am allowing Login via Facebook and Sharing. Based on user birthday there are discounts. I want to implement Logout functionality, which makes Logout completely from app. For this I tried logout from Facebook as: FBSDKLoginManager *login =...

Google Sign-in “check first time login” and “Logout” issues in android application

android,sharedpreferences,logout,google-plus-signin
I am making an android application, when the user installs the application, he/she needs to sign-in with google account, after successful logged-in , he/she will be redirected to the dashboard page. If he/she closes application and opens it again and if they are already logged in then dashboard activity should...

error in facebook logout

android,facebook,logout
Im using the below code to logout from the fb in my application. this code gives an error to the logout, I can't figure out the issue , any help will be appreciated. error message is The method logout(Context, AsyncFacebookRunner.RequestListener) in the type AsyncFacebookRunner is not applicable for the arguments...

Geting ID from table in SQL through PHP

php,mysql,sql,logout
I am trying to create a logout page using session_destroy() but all i get is a blank page. This is my code about logging in(I assume the problem has to be somewhere here but i am a beginner at this). What i thought it will work is creating a session...

Logout doesn't redirect - Symfony2

php,security,symfony2,fosuserbundle,logout
Logout is successfuly performed and user is disconnected. The problem is that it doesn't redirect to the page set in configuration. It gives instead a 500 Internal Error with following error message: ContextErrorException: Warning: SessionHandler::write(): Parent session handler is not open in C:\xampp\htdocs\community\app\cache\dev\classes.php line 398 I am using Symfony2.3.25 and...

Yii2 redirect with timer

redirect,timer,notifications,yii2,logout
I want to log the user out after changing his password, but also want to show them the notification that it has changed. So in order to do this, I'd like to use a redirect command with a timer of 2-5 seconds.. Sadly I couldn't find it anywhere. Any help?!...

SAPUI5 logOff() with Shell

shell,logout,sapui5,logoff
How would I realize the logoff function in Shell control having this API example: https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.commons.ApplicationHeader.html#event:logoff var oLogoff = new sap.ui.commons.ApplicationHeader(); ... // within the Shell (function logout) logout : function(oEvent) { oLogoff.fireLogoff(); // this.fireLogoff() also not working }, ... EDIT: oShell.fireLogout(); --> seems to be right, but this Ends up...

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

php,authentication,laravel,laravel-5,logout
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...

Can not log out correctly PHP

php,logout
I can log in and access all member pages, but when I log out, I can still access all memberspages I use this code to log out: $_SESSION["admin_id"] = false; $_SESSION["username"] = null; redirect_to("login.php"); and this code to check if a user is logged in, function logged_in() { return isset($_SESSION["admin_id"]);...

wso2 is single logout doesn't sent LogoutRequest to other enrolled SPs

wso2,logout,saml,wso2is,opensaml
Scenario: I have 2 SP viz A and B configured in WSO2 IS 5.0 sp1. I have configured Custom Logout URL in B. This logout URL points to the logout for A. Now when I logout from A, there is no LogoutRequest which is sent from IDP to B. On...

Why are my buttons in Android not working?

android,button,switch-statement,logout
I have created a menu activity with 3 buttons (main,history,logout). I do not know why all of buttons are not working and there's logout function. Anyway i have no idea about logout function, is it right function or wrong function? I am new to Android, any help will be appreciated....

Login Form keeps coming back

php,forms,login,logout,back
This is my login page : " This is the form , form action="" is set to none (may be the problem?) < form action="" method="POST"> Username: < input type="text" name="user"> Password: < input type="password" name="pass"> < input type="submit" value="Login" name="submit" /> < /form>" $query=mysql_query("SELECT * FROM login WHERE username='".$user."'...

Android: automatic logout

java,android,time,login,logout
Hi I want to logout automatically after a determined time of inactivity my Android app. In the Second Activity in onPause I save the time when the app is in pause in a variable. In MainActivity in method onresume I save the time when the app restarts in another variable...

How to destroy all sessions in Symfony 2

php,symfony2,session,logout
Update After detailed investigation and consultation with some experts, it occurred to me, that idea of destroying sessions is an incorrect one. The better question would be — «How to force all users to log out». And this problem should be solved not from the session perspective, which is a...

TFS 2013 web access - can't sign out

google-chrome,internet-explorer,opera,logout,tfs-web-access
We use TFS 2013 on premise. I just noticed a weird issue with the web interface, namely I can properly sign out only from Firefox. When I use Chrome, IE or Opera, hitting the "sign out" link shows the proper signout page, saying: Sign out: close browser to complete sign...

Android Facebook 4.0 Logout Programmatically

android,facebook,sdk,logout
In my app, I allow users to login to and logout from Facebook programmatically. For login, I call: ArrayList<String> permissions = new ArrayList(); permissions.add("manage_pages"); permissions.add("publish_actions"); LoginManager.getInstance().logInWithPublishPermissions(App.activity, permissions); And for logout, I call: FacebookSdk.sdkInitialize(getApplicationContext()); LoginManager.getInstance().logOut(); When I call the logInWithPublishPermissions() method above, the official Facebook app opens prompting the user to...

How can i separate php code with html to have them both clean and separate in different files?

php,html,login,logout
what i want to do is something like this <div id="login"> <h6> Log in </h6> <form method="POST"> <p> Usuario: <input type="text" name="user"/></p> <p> Password: <input type="text" name="pass"/></p> <input name="accion" value="login" type="hidden"/> <input type="submit" value="Send" /> </form> </div> and i want to separate with a php code that makes me log...

How to hide a
using PHP

php,login,logout
Hi I have used some code but I want it so when the name is NULL it is hidden, if this is possible please help. Here is the code <p id="top"><strong>Welcome back <?php echo $_SESSION['name']; ?> [<a href="admin/logout.php">Logout</a>]<br/>Welcome To the homepage of The Journalist's</p> I want it to be when...

WordPress login & logout with UserPro in menu

php,wordpress,login,logout
I'm using a plugin called "UserPro". I'm also using a function in my menu to show either "Login" or if logged in "Logout". function autov_add_loginout_navitem($items) { $login_item = '<li class="login">'.wp_loginout($_SERVER['REQUEST_URI'], false).'</li>'; $items .= $login_item; return $items; } add_filter('wp_nav_menu_account_items', 'autov_add_loginout_navitem'); the plugin has a short code <?php echo do_shortcode('[userpro template=login]'); ?>...

Log user out in Symfony 2 application when “remember me” is enabled

php,security,symfony2,authentication,logout
I'm looking for a way to log user out of Symfony 2 application, but could not find a way to do it properly. I've tried an approach described here: Symfony2: how to log user out manually in controller? $this->get('security.context')->setToken(null); $this->get('request')->getSession()->invalidate(); It's working fine when "remember me" is disabled, however, when...

sess_destroy() doesn't work properly

php,codeigniter,session-variables,logout
I'm trying to implement logout in Codeigniter. Here is what I'm doing: public function logout() { if($this->session->userdata('session_id')){ $this->session->unset_userdata('logged_in'); $this->session->unset_userdata('session_id'); $this->session->unset_userdata('email'); $this->session->sess_destroy(); redirect('welcome', 'refresh'); } } And here is the login function: public function authentication() { $this->load->helper('html'); $this->load->library('javascript');...

Pass the user login email address to next FragmentActivity

android,login,logout
when my LoginAsyncTask calling the ActivityMenu.java i want to send the email address with it as shown in the code. but the value for email is null. I tried both email and Email but still its value is null. purpose I want to send this is i want to show...

Logout from Facebook using Parse - Swift

ios,swift,parse.com,facebook-ios-sdk,logout
I'm trying to completely log my user out of my app. When using PFUser.logout() I successfully log the user out of Parse. But when I come back in the app and click on the login button, I'm redirected to the Facebook screen saying :"You have already authorized [name of the...