• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

designing login page

 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello experts,
i want to design a login page so that user could preserve his authentication during the session,although I've logic for this in my mind but even though i want use the best way given by you.
where should i store login information to verify the the correctness of the login data entered by user, in database? or elsewhere?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a database.
 
Jeff Rummings
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Bear suggested.

It's a good practice to md5 the password prior to storing it in the database.
 
a ganesh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
storing in database and validating those credential is best practive.
whn storing passwords in database encrypt them and store. while validating it bring the encrypted value from database and decrypt in your java and validate .. its a good practice i feel
 
Lave Kulshreshtha
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Did you try Basic, Digest or form based authentication schems.

-Lave
Originally posted by Nidhi Nagre:
hello experts,
i want to design a login page so that user could preserve his authentication during the session,although I've logic for this in my mind but even though i want use the best way given by you.
where should i store login information to verify the the correctness of the login data entered by user, in database? or elsewhere?
 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks to all,

how to encrypt password before storing it in database?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic