Page 1 of 1

JS vs PHP login systems

Posted: Mon Feb 23, 2009 12:49 pm
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?

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 1:43 pm
by papa
Looking at the first link you see that the file extension is .php :)

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 1:46 pm
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.

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 1:51 pm
by papa

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 2:03 pm
by diG1tY
Does that mean you can't create a log-in app with JS/AJAX? :dubious:

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 2:08 pm
by jayshields
No, ofcourse it doesn't.

However, an entirely JS login would be very easily compromised.

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 2:19 pm
by diG1tY
How come ? Because you can view the source. And even if it does, what can hapend. Note I am quite new :oops:

Re: JS vs PHP login systems

Posted: Mon Feb 23, 2009 8:13 pm
by josh
Since to be entirely JS based it'd have to hard code the password

Re: JS vs PHP login systems

Posted: Tue Feb 24, 2009 1:40 am
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.