Login doesn't "register" immediately?

E

Erik Lautier

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.
 
J

Jon Paal [MSMD]

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

google:

asp.net login tutorial
 
C

Cowboy \(Gregory A. Beamer\)

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
in.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top