diff options
-rw-r--r-- | lib/class/vauth.class.php | 5 | ||||
-rw-r--r-- | login.php | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php index 4066b4be..d8033b36 100644 --- a/lib/class/vauth.class.php +++ b/lib/class/vauth.class.php @@ -73,7 +73,7 @@ class vauth { $results = self::get_session_data($key); - if (is_array($results)) { + if (!is_array($results)) { debug_event('SESSION','Error unable to read session from key ' . $key . ' no data found','1'); return false; } @@ -256,13 +256,10 @@ class vauth { break; case 'mysql': default: - // Create our cookie! - session_regenerate_id(); // Before refresh we don't have the cookie so we have to use session ID $key = session_id(); - self::create_cookie(); break; } // end switch on data type @@ -110,9 +110,8 @@ if ($auth['success']) { // Not sure if it was me or php tripping out, // but naming this 'user' didn't work at all // - session_start(); $_SESSION['userdata'] = $auth; - + // // Record the IP of this person! // |