Commit 22fa22ba4805013a480773600797212c0676c00a

Authored by Megan Watson
1 parent 888484fa

KTS-2295

"CLONE -Links to KT documents/folders do not work in MS Word (SUP-390)"
Fixed. Removed all logic for redirecting to the dashboard after a time-out.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8378 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 5 additions and 0 deletions
login.php
@@ -96,6 +96,10 @@ class LoginPageDispatcher extends KTDispatcher { @@ -96,6 +96,10 @@ class LoginPageDispatcher extends KTDispatcher {
96 #var_dump(PEAR::raiseError()); 96 #var_dump(PEAR::raiseError());
97 } 97 }
98 98
  99 + /*
  100 + Removing the code that redirects to the dashboard as it breaks linking in from external documents.
  101 + The fix below doesn't work if the users are behind a proxy server.
  102 +
99 // If the last user from the same IP address timed out within the last hour then redirect to the dashboard 103 // If the last user from the same IP address timed out within the last hour then redirect to the dashboard
100 // Otherwise allow any other redirect to continue. 104 // Otherwise allow any other redirect to continue.
101 // The user might still be taken to the last page of the previous users session but 105 // The user might still be taken to the last page of the previous users session but
@@ -104,6 +108,7 @@ class LoginPageDispatcher extends KTDispatcher { @@ -104,6 +108,7 @@ class LoginPageDispatcher extends KTDispatcher {
104 { 108 {
105 $_REQUEST['redirect'] = generateControllerLink('dashboard'); 109 $_REQUEST['redirect'] = generateControllerLink('dashboard');
106 } 110 }
  111 + */
107 112
108 $session = new Session(); 113 $session = new Session();
109 $sessionID = $session->create($oUser); 114 $sessionID = $session->create($oUser);