i think everything is working now!!! i finally noticed the code below and took out my whole section that was opening the permission file (after the password was matched and changed the return line to the one below that calls &auth_check_permissions. now i have to work on the routines to change password, email address etc. thanks for the time you've spent helping me.
elsif ($db_uid) { # The user already has a user id given by the program.
(-e "$auth_dir/$db_uid") ?
return ('ok', $db_uid, &auth_check_permissions($db_uid)) :
return ('invalid/expired user session');
}
Code:
elsif ($db_uid) { # The user already has a user id given by the program.
(-e "$auth_dir/$db_uid") ?
return ('ok', $db_uid, &auth_check_permissions($db_uid)) :
return ('invalid/expired user session');
}