Commit e9ba3f9ee63b60267d773061863924ae344e3b94

Authored by Michael Joseph
1 parent ae61c83d

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")) {
... ...