aspose file tools*
The moose likes Servlets and the fly likes designing login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "designing login page" Watch "designing login page" New topic
Author

designing login page

Nidhi Nagre
Ranch Hand

Joined: Nov 05, 2007
Posts: 64
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

Joined: Jan 10, 2002
Posts: 61657
    
  67

I use a database.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeff Rummings
Ranch Hand

Joined: Dec 20, 2007
Posts: 42
As Bear suggested.

It's a good practice to md5 the password prior to storing it in the database.
a ganesh
Greenhorn

Joined: Jul 31, 2006
Posts: 2
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

Joined: Oct 21, 2007
Posts: 106
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?


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, ITIL V3 Foundation Certification
Nidhi Nagre
Ranch Hand

Joined: Nov 05, 2007
Posts: 64
thanks to all,

how to encrypt password before storing it in database?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: designing login page