summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 20:01:35 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 20:01:35 +0000
commit07d0f509554333f0d7ea6c2d445fa8c4996ed07b (patch)
tree284c1e105e388877a3b45bd19932e2fd7dae0da0 /lib
parentea8f3e685b85074d55b88a3c2ef9d6a536c173ca (diff)
downloadampache-07d0f509554333f0d7ea6c2d445fa8c4996ed07b.tar.gz
ampache-07d0f509554333f0d7ea6c2d445fa8c4996ed07b.tar.bz2
ampache-07d0f509554333f0d7ea6c2d445fa8c4996ed07b.zip
fixed login that was out of order
Diffstat (limited to 'lib')
-rw-r--r--lib/class/vauth.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php
index bafceab0..8fa547d9 100644
--- a/lib/class/vauth.class.php
+++ b/lib/class/vauth.class.php
@@ -253,11 +253,12 @@ class vauth {
// Create our cookie!
self::create_cookie();
+ session_regenerate_id();
+
// Before refresh we don't have the cookie so we have to use session ID
$key = session_id();
- session_regenerate_id();
break;
- }
+ } // end switch on data type
$username = Dba::escape($data['username']);
$ip = Dba::escape(ip2int($_SERVER['REMOTE_ADDR']));