login control, track user

Posted on 2007-09-28
Last Modified: 2010-05-18
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
Question by:dontnetsanjay
    LVL 37

    Expert Comment

    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.

    Author Comment

    hello samtran0331

    and how do we activte or use form authentication?

    Yes u got my question
    LVL 37

    Accepted Solution

    Here are a few links:

    If you google " 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) 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.

    Author Comment


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now