Page 1 of 1

safe login script???

Posted: Tue Jun 19, 2012 12:47 pm
by Lykos22
As I was browsing on youtube for some php videos, I bumped into this http://www.youtube.com/watch?v=HeavBljJppE . If my website has no user accounts, just admin, is it safe to create the login script like this??? or better do it with database table, create a table users with only one user in, the admin, and do it like the user login & register system?

Re: safe login script???

Posted: Tue Jun 19, 2012 1:33 pm
by jacek
That method is fine, however the code is a very outdated style.

Re: safe login script???

Posted: Tue Jun 19, 2012 2:17 pm
by Lykos22
jacek wrote:That method is fine, however the code is a very outdated style.
outdated??? didn't get that :?
mean having security issues??

Re: safe login script???

Posted: Tue Jun 19, 2012 8:51 pm
by jacek
Lykos22 wrote:mean having security issues??
Not really, but meaning it's the wrong style to be learning. In fact the method used there won't work with the latest version of PHP.

Re: safe login script???

Posted: Wed Jun 20, 2012 7:53 am
by Lykos22
so better do it with db tables :ugeek:

Re: safe login script???

Posted: Wed Jun 20, 2012 11:09 am
by jacek
No, the method is fine. But some of the code used is not.