login - Android Keeping Session Forever -


quite opposite of might think i'm asking about. ran small bug on particular device in fails log site through httpclient

public void login() {     final webhandler webhandler = this;     this.httpclient = new defaulthttpclient();     this.thread = new thread(new runnable()     {         @override         public void run()         {             // update local database             sharedpreferences prefs = preferencemanager.getdefaultsharedpreferences(root);             login(prefs.getstring(keys.preference.username, ""), prefs.getstring(keys.preference.password, ""));             (oncompletelistener method : event_handler)                 method.oncomplete(webhandler); // pop event              logout();         }     });     this.thread.start(); } public void logout() {     try {         this.httpclient = new defaulthttpclient();         httppost httppost = new httppost(domain + logout_url);         httpresponse response = this.httpclient.execute(httppost);     } catch (ioexception e) {         if (e.getmessage() != null)             log.e("logout()", e.getmessage());         else             log.e("logout()", e.tostring());     } } 

the idea request log site (even if logged in), visit page information, , log out. problem seem having 1 of our devices (a chinese "gaming" tablet) never logs out. trying login faulty credentials, allowed access site. i've run through browser on device , logged out, cleared data, etc. there no logical explanation why device getting information login-locked website. don't know how debug such scenario.

site coded joomla, , appears page had no access level restrictions, , defaulted "guest" user access. changing "employee" solved problem.