Joematt:
I added the folowing code in db.pl in sub add_record after &html_add_success and in sub modify_record after &html_modify_success;
Code:
opendir (AUTHDIR, "$auth_dir") || &cgierr("unable to open directory in auth_cleanup: $auth_dir. Reason: $!");
unlink ("$auth_dir/$db_uid");
closedir (AUTHDIR);
It works!
The user adds their record, is shown the sub html_add_success page or the sub html_modify success page and then the above code invokes and deletes the session id. If the user hits the back button on their web browser and tries to add another record again by hitting the submit button, the sub html_login_error page loads and they need to log in again.
This is a great little "hack" for those dbman users that only allow one record to be added at a time and want the user to be logged off right after adding the record. FYI...On the sub html_add_success page or the sub html_modify success page, if you are using this hack, do not print sub_html_footer (your navigation links for dbman) because if a user clicks on one of the links, they will have to log in again.