mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
removed duplicate cookie-age and bad logic on read
This commit is contained in:
parent
a2c471bd18
commit
c31b6f050c
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue