Hi all,
I have juste made a fresh install of osticket and has the same trouble as you.
But I have also notice a strange behaviour : if I enter the good admin login/password, I get a "Authentication Required" error message.
But if I simply reload the page, without giving any login/password, I can get the the wanted page...
After investigation, it was a config problem with my Firefox which use the proxy but shouldn't.
I found that in the include/class.usersession.php file : I modified a little this file to log in a text file the reason of the invalid session.
If you want to do the same to verifiy is it's the same problem, here is what I've done (all in include/class.usersession.php file):
1/ in function sessionToken of class UserSession, I save in the session the raw last used IP - change line 65 to (add the ip in the $token list):
$token = "$hash:$time:".MD5($this->ip).":".$this->ip;
2/ Then in function isvalidSession of the same class, I get this information back line 84 (add $rawip variable):
list($hash,$expire,$ip,$rawip)=explode(":",$token);
3/ Then for the "return FALSE" lines in the same function, I add logs into a text file : example on the 4th check which concern ip address :
#Make sure IP is still same ( proxy access??????)
if(strcmp($ip, MD5($this->ip))) {
$fd = fopen("/tmp/log","a");
fwrite($fd,"Error4: $ip, $rawip, ".$this->ip."\n");
fclose($fd);
return FALSE;
}
4/ I then browse osTicket admin pages until falling into the login page, and check in this log file what's happen : it was any ip but mine.
Hope it will help !