Login doesn't "register" immediately?

Discussion in 'ASP .Net' started by Erik Lautier, Apr 7, 2007.

  1. Erik Lautier

    Erik Lautier Guest

    Hi - I have a user login with two textboxes and a button on an .aspx
    page, but about the half the time the user has to refresh the page in
    order for them to appear logged in. I've tried three methods:

    1. Login code is in the page itself, and upon authentication, the
    page is refreshed. Problem is that half the time it still shows the
    login boxes instead of the text "You are now logged in".

    2. Login code is in the page itself, but I send them to a page they
    don't see which automatically redirects them back. Same problem.

    3. Login code is in the page itself, but I send them to a page that
    pauses for a couple seconds with the text "logging you in..." before
    redirecting them back. Same problem.

    Anyhow, there should be a pretty simple fix for this. I'd rather not
    send them to a different page to log in - I'd like to keep them on the
    original page if possible. Thanks for your help.
    Erik Lautier, Apr 7, 2007
    1. Advertisements

  2. without seeing the code there is little to offer except generic help references


    asp.net login tutorial
    Jon Paal [MSMD], Apr 7, 2007
    1. Advertisements

  3. When I first read your thread, I was thinking you had the code in the wrong
    place in the stack and you had already "painted" the page prior to logging
    the person in. I now think you are probably just not logging the person in
    properly. THe best way to check is to debug and check the user object
    (MembershipUser if you are using the Membership Provider model). If it is
    not null and still showing login, you probably have a configuration issue.
    If it is null, there is something wrong with your code that logs the person
    Cowboy \(Gregory A. Beamer\), Apr 9, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.