Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > servlet, jsp, secure login

Reply
Thread Tools

servlet, jsp, secure login

 
 
Ghost
Guest
Posts: n/a
 
      06-23-2005
I am trying to set up a secure website. Each page will require user
authentication. The majority of this website is written in servlets
and JSPs. I was wondering what the most secure approach would be.

If I use a login page, that login page will need to send the parameter
values: "name" and "password" over an HTTP request to a servlet that
would query a database to see if that user is a registerd user. This
does not seem very secure.

Is there a more secure way to do this? How secure is it to use web.xml
to store user names and passwords? Is it better to use a database to
store these values?

Any suggestions would be appreciated. Thanks in advance.

 
Reply With Quote
 
 
 
 
SMC
Guest
Posts: n/a
 
      06-23-2005
On Fri, 24 Jun 2005 04:43:27 +1000, Ghost wrote:

> I am trying to set up a secure website. Each page will require user
> authentication. The majority of this website is written in servlets and
> JSPs. I was wondering what the most secure approach would be.
>
> If I use a login page, that login page will need to send the parameter
> values: "name" and "password" over an HTTP request to a servlet that
> would query a database to see if that user is a registerd user. This
> does not seem very secure.


And you'd be right. Look up SSL. Practically all web/application servers
support it.

> Is there a more secure way to do this? How secure is it to use web.xml
> to store user names and passwords?


As secure as the system it resides on and as secure as the application
server that uses it.

From a design and maintenance perspective, not such a good idea IMHO.

> Is it better to use a database to
> store these values?


There are many solutions, this can be a good one.

Do some Googling.

Cheers
--
Sean

There's no place like 127.0.0.1
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure your digital information assets with Secure Auditor. SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:53 AM
Secure your digital information assets with Secure Auditor SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:52 AM
Secure your digital information assets with Secure Auditor and alsoSecure Windows with Secure Auditor alannis.albert@googlemail.com Wireless Networking 0 04-14-2008 06:37 AM
Sharing Session state over secure / non-secure requests Daniel Malcolm ASP .Net 0 01-24-2005 04:45 PM
This page contains both secure and non secure items. A.M ASP .Net 5 06-08-2004 05:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57