To redirect to the profile edit page after successful login, use the following code in the Login page: After successful login event.
global $dal;
$tblUsers = $dal->Table("UserTableName");
$rs = $tblUsers->Query("UserNameField='".$username."' and
PasswordField='".$password."'","");
$data = db_fetch_array($rs);
header("Location: tablename_edit.php?editid1=".$data["IDField"]);
exit();
See also:
•Redirect to details page after master record was added