Jump to content

can't login login check keeps failing


dario

Recommended Posts

I have a problem when I try to log into my website it looks like my login check function always says the login is failed. 

I have no errors or something it just never works to log in succesfully 

i dont have a clue how i have to solve this =( 

 

functions.php

process_login.php

login.php

protected_page.php

Link to comment
https://forums.phpfreaks.com/topic/287868-cant-login-login-check-keeps-failing/
Share on other sites

the point of tutorials are for you to learn from them.

 

rather than you just repeatedly dumping all your code and errors/symptoms on a programming help forum and expect someone else to find and tell you what to do (we already know how to read and troubleshoot code and don't need the practice), what debugging have you done to find out what the code is doing?

 

btw - the 'secure' login script you found and are trying to follow is just a demonstration of the secure login concepts the author came up with and it is not a well written or usable script. it's a minimal 'application' and lacks error checking logic that would tell you if and why things like queries are failing.

well im looking for the solution for about 1 hour and with no result. i'm a php beginner that's why i posted this topic. I have read the login check function for about 50 times and I really dont see the bug in it. i have made new user's in my database to check if it was the user that was causing the bug. I really want to learn from this but its just that looking for something you dont know yet is pretty damn hard. once i see how its done once i will never have to ask it again.

the code from the tutorial site works, there's no specific bug in it to be found. it just has shortcomings that make it unsuitable for use on a real web site.

 

you need to determine what the code is doing when it runs to find at what point it is not doing what you expect in order to find what the problem is.

 

for anyone here to help, you need to state what does happen when you submit the login form (even a blank-page is a clue) in order to narrow down the dozens of possibilities to just a few things to check further.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.