Hello, everyone! I recently started to learn php & nbsp; The logon interface means & nbsp; if the account and password are the same as the database & nbsp; then give a session username & nbsp; check whether the user is valid & nbsp; use include & nbsp; check. php code is & nbsp; if the session is blank & nbsp; new users ask questions about legal user verification
Hello everyone! I recently started to learn the php login interface. This means that if the account and password are the same as the database, then give a session = user name.
Then, check whether the include check. php is valid on each interface.
The code is that if the session is empty, the message is illegal, but the security is poor. Is there any good idea or code? thank you!
I'm sorry, I'm not a newbie.
------ Solution --------------------
$ _ SESSION [''admin _ name] = "" is different from session = ""
------ Solution --------------------
Session_start ();
$ _ SESSION ['username'] = "123 ";
It's a php program, not a form that can be submitted!
Of course, if someone runs to your server to modify your program, it's another thing.