safe login script???

Ask about a PHP problem here.
Post Reply
Lykos22
Posts: 19
Joined: Sat Mar 24, 2012 9:03 am

safe login script???

Post 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?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: safe login script???

Post by jacek »

That method is fine, however the code is a very outdated style.
Image
Lykos22
Posts: 19
Joined: Sat Mar 24, 2012 9:03 am

Re: safe login script???

Post 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??
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: safe login script???

Post 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.
Image
Lykos22
Posts: 19
Joined: Sat Mar 24, 2012 9:03 am

Re: safe login script???

Post by Lykos22 »

so better do it with db tables :ugeek:
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: safe login script???

Post by jacek »

No, the method is fine. But some of the code used is not.
Image
Post Reply