rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: AJAX Login System Demo rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: rlm@0: rlm@0:

AJAX Login System Demo

rlm@0: Creating a secure login system using XMLHttpRequest rlm@0: rlm@0:

This is an example of a login system that does not require page refreshes, but is still very secure. Valid rlm@0: usernames and passwords for this demo are user1/pass1 and user2/pass2. Try these, and also incorrect passwords rlm@0: to see the results.

rlm@0: rlm@0:

Please note that this is not a functional form, your input will not go anywhere. It is solely for demonstrating rlm@0: an XMLHttpRequest login system in javascript.

rlm@0: rlm@0:

Advantages

rlm@0: rlm@0: rlm@0:

Disadvantages

rlm@0: rlm@0: rlm@0:

Demonstration

rlm@0: rlm@0:
rlm@0:
rlm@0: rlm@0: rlm@0: rlm@0:
rlm@0:
rlm@0: rlm@0:

Source

rlm@0: rlm@0: rlm@0:

Questions

rlm@0:

Can I copy your code?
rlm@0: Sure, although I'd recommend you rewrite it as you go so you can actually learn rlm@0: something useful. Also, passing someone else's code as your own is just uncool. rlm@0:

rlm@0:

Why didn't you use [insert technology here]?
rlm@0: Basically I haven't done web development in close to a year, so I used what I knew best rlm@0: (PHP/MySQL) and used the Javascript that I remembered, along with a little bit of rlm@0: refreshing my memory. Perhaps I should have used object-oriented PHP or Javascript, but rlm@0: this works. If it is slightly confusing, I apoligise, this is only meant as a proof-of-concept.

rlm@0:
rlm@0:

Created: 28 Jan 2005.

rlm@0:

Last updated: 1 Dec 2005. Copyright © 2005. rlm@0: rlm@0: