JS vs PHP login systems

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
diG1tY
Forum Newbie
Posts: 17
Joined: Sun Feb 01, 2009 2:50 pm

JS vs PHP login systems

Post by diG1tY »

Hello again. Recently I was looking at 2 browser-based games, namely http://www.imperiaonline.org and http://www.bulfleet.com. I saw that their whole projects are written in JS(AJAX). Do you think JS/AJAX is better than PHP when we are talking about writting whole web projects? And second question is PHP the best(or only) solution to writting a log-in systems?
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: JS vs PHP login systems

Post by papa »

Looking at the first link you see that the file extension is .php :)
diG1tY
Forum Newbie
Posts: 17
Joined: Sun Feb 01, 2009 2:50 pm

Re: JS vs PHP login systems

Post by diG1tY »

Yes but I didn't find any php code in the source code. I've downloaded some of the pages from the server and saw only JS code.
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: JS vs PHP login systems

Post by papa »

diG1tY
Forum Newbie
Posts: 17
Joined: Sun Feb 01, 2009 2:50 pm

Re: JS vs PHP login systems

Post by diG1tY »

Does that mean you can't create a log-in app with JS/AJAX? :dubious:
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: JS vs PHP login systems

Post by jayshields »

No, ofcourse it doesn't.

However, an entirely JS login would be very easily compromised.
diG1tY
Forum Newbie
Posts: 17
Joined: Sun Feb 01, 2009 2:50 pm

Re: JS vs PHP login systems

Post by diG1tY »

How come ? Because you can view the source. And even if it does, what can hapend. Note I am quite new :oops:
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: JS vs PHP login systems

Post by josh »

Since to be entirely JS based it'd have to hard code the password
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: JS vs PHP login systems

Post by papa »

josh wrote:Since to be entirely JS based it'd have to hard code the password
Creating jobs for people though :)

You can also turn off JS in your browser which would make your login script fail.
Post Reply