jonw118 Posted June 24, 2010 Share Posted June 24, 2010 Hello... I have a website that has worked with no problem. I login using .../admin and enter credentials. I've moved it to a new server and frontend works fine. When I trying logging in the backend, it I enter the wrong user/pass it tells me wrong user/pass. But when I enter in the correct credentials it simply reloads the login page versus the index page with no message. Since I get the message when it's incorrect I know it's connecting to the DB. The php versions are the same. I have php error logging and it's not giving an error. Can anyone give me tips or advice as to what I should be looking for? Thanks! Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted June 24, 2010 Share Posted June 24, 2010 Could be a number of reasons, you need to debug your code. Find out what should be happening (and where in the code it should happen) when you login. Then you would echo specific variables to make sure they are what you expect (like header(location...) redirects). Something is obviously wrong, usually it is to do with GLOBALS where the POST data hasnt actually been recieved but that cause seems unlikely in this situation. You have to debug the code. -cb- Quote Link to comment Share on other sites More sharing options...
premiso Posted June 24, 2010 Share Posted June 24, 2010 The force is no longer with me. I cannot read the code from here =\ Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted June 24, 2010 Share Posted June 24, 2010 Simply amazing, another "my code does not work but I'm not going to provide you with any real information about what my code is that would allow you to help me." Best guess is you are outputting content to the browser before your redirect and/or you don't really have error_reporting set to E_ALL and log_errors turned on so that ALL php errors would be logged. Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted June 24, 2010 Share Posted June 24, 2010 I cannot read the code from here =\ Then we cannot help you... -cb- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.