I found this procedure on Stackoverflow (http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication) that allow clear authentication saved in the browser for your site:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
function ClearAuthentication(LogOffPage) { var IsInternetExplorer = false; admin = 'n'; try { var agt=navigator.userAgent.toLowerCase(); if (agt.indexOf("msie") != -1) { IsInternetExplorer = true; } } catch(e) { IsInternetExplorer = false; }; if (IsInternetExplorer) { // Logoff Internet Explorer document.execCommand("ClearAuthenticationCache"); window.location = LogOffPage; } else { // Logoff every other browsers $.ajax({ username: 'unknown', password: 'WrongPassword', url: '/', type: 'GET', beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic AAAAAAAAAAAAAAAAAAA="); }, error: function(err) { //alert(window.location.protocol + '//xxxx:xxxx@' + window.location.host + ':' + window.location.port + LogOffPage); window.location = window.location.protocol + '//xxxx:xxxx@' + window.location.host + LogOffPage; window.location = window.location.protocol + '//' + window.location.host + LogOffPage; } }); } } |
i tried it on chrome and firefox and function as aspect:
1 |
<div class="rcbtn" id="rcdown" onclick="ClearAuthentication('/index.html')">Back to main page</div> |
From 13 September 2016 will be available the iOS10… also the iPhone7. for specific information you can visit the Apple link: https://developer.apple.com/ios/ In few words there are some news, most important for me are: 1) API/SDK to integrae “Siri” in your application 2) Proactive suggestions: iOS 10 introduces new ways to increase engagement with your…
Leggi tutto
http://blog.marcocantu.com/blog/2016-august-linux-25-delphi-coming.html
Today i do some test about TBluetooth LE component on Delphi Seattle on different devices. Device BT LE as Client BT LE as Server (pheriferial mode) Mac Book Pro OSX 10.11.6 Yes Yes iPhone 6s iOS 9.3 Yes Yes Samsung S4 Android lollipop Yes No: raise an axeception on phheriferial mode?!?! PC Windows 10…
Leggi tutto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<!DOCTYPE html> <html> <body> <img id="myimg" src="http://q8edvppv.synaptica.it:2222/?keycode=takepicture" width="500px" height="500px"> <script> var counter=0; var prev2 = new Date(); function myFunction() { document.getElementById('myimg').src ="http://q8edvppv.synaptica.it:2222/?keycode=takepicture&Time=" + counter; //prev2.getMilliseconds(); counter = counter+1; console.log('CIAOOOO'+counter); } setInterval(function(){myFunction();}, 1500); </script> </body> </html> |
I was on testing our app remode on a Raspberry PI3 with Android 6.0 Marshmallow… so i need debug and i foud that can be done via lan simply using the command ADB “command” like:
1 |
adb connect "device ipaddress" |