Commit 36bdb337c49a45cd26b3ebab8a47c71c09e223cb

Authored by michael
1 parent 8c93b4c1

changed session verification return variable type

fixed automatic login redirect


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@258 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 2 deletions
lib/control.inc
... ... @@ -71,10 +71,10 @@ function checkSession() {
71 71 $session = new Session();
72 72 $sessionStatus = $session->verify();
73 73  
74   - if ($sessionStatus["status"] != 1) {
  74 + if ($sessionStatus != 1) {
75 75 // verification failed, redirect to login with error message
76 76 $default->log->debug("checkSession:: session check failed");
77   - $url = "/login.php?loginAction=loginForm";
  77 + $url = $default->owl_root_url . "/login.php?loginAction=loginForm";
78 78  
79 79 $redirect = $_SERVER[PHP_SELF];
80 80 if ((strlen($redirect) > 1) && ($redirect != "/control.php")) {
... ...