Demo

Secured ajax chat
The example from PHP secured ajax-chat
For the authorization use one of the following users: user1, user2, user3. Пароль: mypass