[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2887] trunk



Revision: 2887
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2887&view=rev
Author:   einhverfr
Date:     2010-02-10 23:39:41 +0000 (Wed, 10 Feb 2010)

Log Message:
-----------
Logout behavior corrected

Modified Paths:
--------------
    trunk/UI/logout.html
    trunk/scripts/login.pl

Added Paths:
-----------
    trunk/UI/logout/
    trunk/UI/logout/firefox.js
    trunk/UI/logout/iexplore.js

Added: trunk/UI/logout/firefox.js
===================================================================
--- trunk/UI/logout/firefox.js	                        (rev 0)
+++ trunk/UI/logout/firefox.js	2010-02-10 23:39:41 UTC (rev 2887)
@@ -0,0 +1,12 @@
+try{
+var agt=navigator.userAgent.toLowerCase();
+if (agt.indexOf("firefox") != -1) {
+	var xhre = new XMLHttpRequest() ;
+        xhre.open("GET",window.location,true,"logout","logout");
+        xhre.send("");
+        xhre.abort();
+        window.alert('success');
+}
+}
+catch (e) {
+}

Added: trunk/UI/logout/iexplore.js
===================================================================
--- trunk/UI/logout/iexplore.js	                        (rev 0)
+++ trunk/UI/logout/iexplore.js	2010-02-10 23:39:41 UTC (rev 2887)
@@ -0,0 +1,9 @@
+try{
+var agt=navigator.userAgent.toLowerCase();
+if (agt.indexOf("msie") != -1) {
+// IE clear HTTP Authentication
+    document.execCommand("ClearAuthenticationCache");
+}
+}
+catch (e) {
+}

Modified: trunk/UI/logout.html
===================================================================
--- trunk/UI/logout.html	2010-02-10 22:57:09 UTC (rev 2886)
+++ trunk/UI/logout.html	2010-02-10 23:39:41 UTC (rev 2887)
@@ -1,4 +1,4 @@
-<?lsmb INCLUDE 'ui-header.html' include_scripts = scripts ?> 
+<?lsmb INCLUDE 'ui-header.html' include_script = scripts ?> 
 <?lsmb PROCESS elements.html ?> 
 <body>
 <h1 class="info">Logout Successful</h1>

Modified: trunk/scripts/login.pl
===================================================================
--- trunk/scripts/login.pl	2010-02-10 22:57:09 UTC (rev 2886)
+++ trunk/scripts/login.pl	2010-02-10 23:39:41 UTC (rev 2887)
@@ -88,7 +88,14 @@
 
 sub logout {
     my ($request) = @_;
-    @{$request->{scripts}} = qw(ie_logout.js moz_logout.js);
+    @{$request->{scripts}} = 
+                  qw(UI/logout/iexplore.js 
+                     UI/logout/firefox.js
+                     UI/logout/opera.js
+                     UI/logout/safari.js
+                     UI/logout/konqueror.js
+                     UI/logout/epiphany.js
+                   );
     $request->{callback}   = "";
     $request->{endsession} = 1;
     LedgerSMB::Auth::session_destroy($request);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.