Connecting Tech Pros Worldwide Help | Site Map

Create Login page

  #1  
Old November 18th, 2008, 09:05 PM
webmaniac
Guest
 
Posts: n/a
Hi,

Does anyone know, How to create a Login Page & read the username &
password from xml file.
Like my XML file is going to store the username & password. & when
user is going to put the username & password in Login Page, It will
check it on XML File. Grab the Username & print Hi Username.

Thanks
  #2  
Old November 18th, 2008, 09:35 PM
Joost Diepenmaat
Guest
 
Posts: n/a

re: Create Login page


webmaniac <sunnyluthra1@gmail.comwrites:
Quote:
Hi,
>
Does anyone know, How to create a Login Page & read the username &
password from xml file.
Like my XML file is going to store the username & password. & when
user is going to put the username & password in Login Page, It will
check it on XML File. Grab the Username & print Hi Username.
You don't want to do this in client-side javascript. Is this homework?

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
  #3  
Old November 18th, 2008, 09:55 PM
Evertjan.
Guest
 
Posts: n/a

re: Create Login page


Joost Diepenmaat wrote on 18 nov 2008 in comp.lang.javascript:
Quote:
webmaniac <sunnyluthra1@gmail.comwrites:
>
Quote:
>Hi,
>>
>Does anyone know, How to create a Login Page & read the username &
>password from xml file.
>Like my XML file is going to store the username & password. & when
>user is going to put the username & password in Login Page, It will
>check it on XML File. Grab the Username & print Hi Username.
>
You don't want to do this in client-side javascript. Is this homework?
A school assignment, methinks.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #4  
Old November 20th, 2008, 10:45 AM
Bart Van der Donck
Guest
 
Posts: n/a

re: Create Login page


Joost Diepenmaat wrote:
Quote:
webmaniac <sunnyluth...@gmail.comwrites:
Quote:
Quote:
>Does anyone know, How to create a Login Page & read the username &
>password from xml file.
>Like my XML file is going to store the username & password. & when
>user is going to put the username & password in Login Page, It will
>check it on XML File. Grab the Username & print Hi Username.
>
You don't want to do this in client-side javascript.
Probably not, but that doesn't mean that it can't be done in
javascript:

1. Fetch the XML-file with XmlHttpRequest and extract the stored
password from it
2. Encrypt the string that the user typed with a (visible) salt
http://groups.google.com/group/comp....6d1191285a15a4
3. Compare results

The problem is what should happen next; there are not many secure ways
to proceed :-) The only way I can think of is to redirect to another
page based on the unencrypted string that was typed by the user.

--
Bart
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
create Login function in Django kang jia answers 0 October 21st, 2007 04:16 PM
how to create login page simply in vb dot thamaraikeeran answers 1 July 18th, 2007 01:55 PM
login page in asp.net with c# RajaRajeswaran answers 1 July 14th, 2007 09:46 AM
how to create login page. ragavi answers 2 June 27th, 2007 11:32 AM