Login loop [solved]
Posted: Tue Jan 03, 2006 9:29 pm
I've just installed Zoneminder 1.21.4 on my Gentoo system using lazyleopard's ebuild from this thread. I've started the daemons using the zmdc.pl start command and they seem to be running well and am trying the web pages. I'm using Apache 2.0.54 with PHP 4.4.0.
I'm trying to login with admin/admin but it just returns me to the login screen. I've spotted various people around with similar problems and they all seem to be to do with the Users table not containing the right data. Using phpMyAdmin I can see that my Users table contains the following:
I've stuck a print_r($_SESSION) at the end of the userLogin() function in zm_funcs.php and it looks like the login query is retrieving the correct user data from the database as the _SESSION variable contains the following data at the end of the function:
Can anyone give me any pointers about where to go from here?
I'm trying to login with admin/admin but it just returns me to the login screen. I've spotted various people around with similar problems and they all seem to be to do with the Users table not containing the right data. Using phpMyAdmin I can see that my Users table contains the following:
Code: Select all
Id - 1
Username - admin
Password - *4ACFE3202A5FF5CF467898FC58AAB1D615029441
Language - <blank>
Enabled - 1
Stream - View
Events - Edit
Control - Edit
Monitors -Edit
System - Edit
MaxBandwidth - <blank>
MonitorIds - <blank>
Code: Select all
Array
(
[format] => html
[cookies] => 1
[device] =>
[username] => admin
[remote_addr] => 192.168.7.214
[user] => Array
(
[Id] => 1
[Username] => admin
[Password] => *4ACFE3202A5FF5CF467898FC58AAB1D615029441
[Language] =>
[Enabled] => 1
[Stream] => View
[Events] => Edit
[Control] => Edit
[Monitors] => Edit
[System] => Edit
[MaxBandwidth] =>
[MonitorIds] =>
)
[password_hash] => *4ACFE3202A5FF5CF467898FC58AAB1D615029441
)