• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database access

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

how to manage database access?

often i see people who create a user on the db to open a connection..... and after it check in the db if the username and password match with the database...... seem to easy to be the best way.....

thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34870
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
Yes, that is common. Typically, there is an "administrative" database user. You don't want to create database accounts for every web user. So that database user checks the password table to see if the web user should have access.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic