summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-25 03:25:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-25 03:25:59 +0000
commitc31b6f050ce4b52ef4e2fb842fd51a40a6bc196d (patch)
tree0d12418af5a8b868b345d5fe24fbaab251cabe72
parenta2c471bd18fb5e38763bb0dfd563aca3a54aed1b (diff)
downloadampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.tar.gz
ampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.tar.bz2
ampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.zip
removed duplicate cookie-age and bad logic on read
-rw-r--r--lib/class/vauth.class.php5
-rw-r--r--login.php3
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
diff --git a/login.php b/login.php
index a41853fe..f518fc82 100644
--- a/login.php
+++ b/login.php
@@ -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!
//