summaryrefslogtreecommitdiffstats
path: root/lib/class/vauth.class.php
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 /lib/class/vauth.class.php
parenta2c471bd18fb5e38763bb0dfd563aca3a54aed1b (diff)
downloadampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.tar.gz
ampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.tar.bz2
ampache-c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d.zip
removed duplicate cookie-age and bad logic on read
Diffstat (limited to 'lib/class/vauth.class.php')
-rw-r--r--lib/class/vauth.class.php5
1 files changed, 1 insertions, 4 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