Javascriptcode

  • Thread starter Thread starter menez64
  • Start date Start date
M

menez64

Hi,

I just created a webpage that requires a username and password to be
submitted in order for the user to proceed to another section of the
site.

My questions is how can the landing page (the page the user is
redirected to, after submitting the correct information) verify that
the user has logged in??? If he/she hasn't how can I redirect the user
to the login page???

Can this be done with javascript itself??? or do in need to connect to
some sort of external database???

Thanks

- puma
 
When I did a login page I would have them submit via button and in the
button click event check their credentials against the database
(Active Directory if you choose) and if it validated I would transfer
them to the next page with the login info if not then I would postback
the page with the error label visible.
 
This is what the ASP.NET Membership, Roles and Profile providers are for. If
you go to the ASP.NET website, check out the QUICKSTARTS tutorials.
Peter
 
Back
Top