• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

login control, track user

Hello,
I have thislogin control(login.aspx)
now when login is successful,
control is redirected to another page(start.asp)
1) how do i track this user
2) if user enters this start.aspx page in brower how do i check this if user is logge in or not and if not content is not displayed but user is redirected to login page
0
dontnetsanjay
Asked:
dontnetsanjay
  • 2
  • 2
1 Solution
 
samtran0331Commented:
1. What do you mean by "track"?
2. This happens automatically with Forms authentication. If forms auth is enabled, the user would have to log on or .Net would automatically redirect the browser to the login page.
0
 
dontnetsanjayAuthor Commented:
hello samtran0331

and how do we activte or use form authentication?

Yes u got my question
0
 
samtran0331Commented:
Here are a few links:

http://msdn2.microsoft.com/en-us/library/aa480476.aspx
http://www.15seconds.com/issue/020220.htm
http://www.howtodothings.com/computers/a792-aspnet-forms-authentication-with-roles.html
http://www.4guysfromrolla.com/webtech/110701-1.shtml

If you google "asp.net forms authentication" there are many many more tutorials...some of the links I posted are VB...but for this level of coding (they're just explaining the basics of forms auth)...so the VB is easy to follow and convert to C#

But the underlying mechanism is built in: once you set up forms authentication, if a user is not authenticated, they will automatically be taken to the login page you define in the web.config file.
0
 
dontnetsanjayAuthor Commented:
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now