<?php require('jUser.php'); $jA = new jUser(); $jA -> jCreateUser('username', 'password', 'accesslevel'); if ($jA -> jAuthenticate('Any Realm')){ $id = $jA -> jGetUserId(); $jA -> jChangeUser($id, 'johan1', 'password1', 'newaccesslevel'); echo 'hello, you are now logged in!'; } ?>