@
Thanx for your answer!!
as far as i know its just to minimize the the chance of an sql injection being able to mess with the login info. you will prob use other other tables and dbs fairly often for other things, and each time you run a query with user input in it, there is a risk involved. having it in a sep db helps/ prevents? them from getting info out of it if they successfully were to exploit other queries in your application because they wouldnt be able to access data in the other database. well, at least it would be harder for them.
Makes sense to me.
But think about that. I get the username, coming from the login form, and take only the part from the beginning to the first space or, if theres no space, to the end. So is it, in my case, really possible to get a sql command hidden in the username? If the username is "delete * from ....", my internal username is "delete" and cant cause any damage. Or am i totaly wrong?`
At this point just the question about my english. As i said in the start of my question, i'm german. Is it ok to read my english or is it totally crazy?
definately. for starters use mysql_real_escape_string()
Another one that makes sense looking at the manual! You've got 2 out of 2! :-) Thank you!
I do already check the username and password. Max length for both 16 characters and, as meantioned above, i take only the part to the first space character or the end.
i would choose ssl over it
Sure but i read that it is so expensive, isn't it?
i implemeneted a login system where the server would generate a random seed that was sent to client for each login attempt. that seed was used to make a hash of the password before sending it back to the server.
This is exactly what i mean. But who does the hash on the client side? I think only javascript or something simular can do that. So what if i'm the user which disables javascript? I can't login. Or is there another way to do that on client side?
Hopefully i don't bother you with all my question!
I don't thought of that before. Very good idea. I'll do that, thanx!
I hope i'll get another answer from you to my question.
Thank you until now!