logout

How Google deals with the Back Button after logout?

允我心安 提交于 2019-12-05 12:21:48
I've been searching the web trying to identify a good way to avoid show previous unsuitable information when the users click the Back Button. For instance: To avoid see information after logout. To avoid see a form after send and process it. I reviewed these posts and many others: avoid go back after logout Prevent back button after logout I like the Google solution but I don't know how is implemented. When I logout from my Gmail account and then I click the Back Button, I'm not able to see my previous mails, I stay at the Login page. I'm not trying to change or avoid the Back Button, I just

Clear service data in AngularJs

扶醉桌前 提交于 2019-12-05 10:06:05
I'm trying to store data in my services similar to the answer in : Processing $http response in service app.factory('myService', function($http) { var promise; var myService = { async: function() { if ( !promise ) { // $http returns a promise, which has a then function, which also returns a promise promise = $http.get('test.json').then(function (response) { // The then function here is an opportunity to modify the response console.log(response); // The return value gets picked up by the then in the controller. return response.data; }); } // Return the promise to the controller return promise;

PHP Digest auth, logout

限于喜欢 提交于 2019-12-05 08:57:51
Is there a way to logout of a digest authentication done in php. I have tried unset($_SERVER["PHP_AUTH_DIGEST"]); But it wont ask to relogin. I know if i close the browser then it will work and here are my functions. function login(){ $realm = "Restricted area"; $users = array("jamesm"=>""); if (empty($_SERVER["PHP_AUTH_DIGEST"])) { header("HTTP/1.1 401 Unauthorized"); header("WWW-Authenticate: Digest realm=\"{$realm}\",qop=\"auth\",nonce=\"".uniqid()."\",opaque=\"".md5($realm)."\""); return false; } if (!($data = http_digest_parse($_SERVER["PHP_AUTH_DIGEST"])) || !isset($users[$data["username

Why do I have unstable session in a MVC3 application with godaddy servers

拥有回忆 提交于 2019-12-05 07:58:05
I have a MCV3 application in godaddy serves and the session is quite unstable. When I login it works fine but while navigating in the application it logs me out, and hitting refresh or navigating a little more inside the application in logs me in just like that (without asking credentials or anything). On my remote test servers and local in works fine. This is probably not a session issue but rather an authentication cookie/ticket issue. GoDaddy (most likely) has their servers load balanced. Meaning that your application actually exists on more than one server at a time. In your web.config, if

Logout from http_basic auth in Symfony2

瘦欲@ 提交于 2019-12-05 06:40:53
Whenever I go to /admin/logout , I'm correctly redirected to the root of my project but still logged in when I visit /admin/ as I'm not prompted for credentials. Here is my configuration: security.yml security: firewalls: admin_area: pattern: ^/admin http_basic: ~ stateless: true switch_user: { role: ROLE_SUPER_ADMIN, parameter: _want_to_be_this_user } logout: { path: /admin/logout, target: / } AdminBundle/Resources/config/routing.yml logout: pattern: /logout app/config/routing.yml admin: resource: "@AdminBundle/Resources/config/routing.yml" prefix: /admin The authorization is still in place

Why can't I logout on django user auth?

眉间皱痕 提交于 2019-12-05 04:11:17
I am using the django.contrib.auth user management system. So I got the registration/insert into the user table/model up and the login from django.contrib.auth.views.login up so I can log in. However, I can't use django.contrib.auth.views.logout to logout I have in my template <h1>My Account</h1> <strong> Welcome, {{ name|capfirst }}!</strong> <br /><br /> <ul> <li> {% if user.is_authenticated %} <a href="{% url django.contrib.auth.views.logout %}">Logout</a> {% else %} <a href="{% url register %}">Sign Up</a> </li> <li> <a href="{% url django.contrib.auth.views.login %}">Login</a> {% endif %}

Admin login stopped functioning Django

主宰稳场 提交于 2019-12-05 00:08:41
问题 I was working on my project for a while and recently noticed that when i try to go to localhost/admin/ it gives out an error : DoesNotExist at /admin/ Site matching query does not exist. Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.3 Exception Type: DoesNotExist Exception Value: Site matching query does not exist. Exception Location: C:\Python27\lib\site-packages\django\db\models\query.py in get, line 349 Usually when i go there it makes me login first and

ios, Facebook logout AND clear user tokens

旧城冷巷雨未停 提交于 2019-12-04 20:15:47
I'm working on an app for iOS5 and iOS6 which makes use of Facebook sdk "3.2.1". is there a way to log the user out and clear the token so that when the login button is pressed again, the user will be forced to enter his username and password again? I use [FBSession.activeSession closeAndClearTokenInformation]; which doesn't seem to be clearing the token information as when the login button is pressed after it, safari will show "you have already authorized 'your app'. press "Okay" to continue" which is not the behavior I need. What you're seeing is not the SDK 'not clearing the token

PHP session timeout script [duplicate]

淺唱寂寞╮ 提交于 2019-12-04 19:54:03
This question already has answers here : How do I expire a PHP session after 30 minutes? (13 answers) Closed 4 years ago . I have this code that logs a user out if they don't change pages for 10 minutes. $inactive = 600; if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { header("Location: logout.php"); } } $_SESSION['timeout'] = time(); As you can see it's pretty straightforward. I include this function at the top of all my protected pages and if the script isn't run for 10 minutes, the next time you refresh the page, the user is

How do I logout from Java EE container managed security?

穿精又带淫゛_ 提交于 2019-12-04 19:14:39
I am working in websphere 7.0. I use the security from the application server. I would like to removing the association with the user, so user is redirected to the login page before accessing a secure resource (and request.getUserPrincipal() returns null). I try : request.getSession().invalidate(); but the user principal is still associated. How could I remove that association? On websphere, a special logout form calles must be used : http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tsec_pofolo.html Here what I am using : <body