Thursday, March 29, 2012

Login doesn't "register" immediately?

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.without seeing the code there is little to offer except generic help referen
ces
google:
asp.net login tutorial
"Erik Lautier" <lautier@.gmail.com> wrote in message news:1175967611.277528.119810@.b75g2000h
sg.googlegroups.com...
> 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.
>
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.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*****
Think outside the box!
****************************************
*****
"Erik Lautier" <lautier@.gmail.com> wrote in message
news:1175967611.277528.119810@.b75g2000hsg.googlegroups.com...
> 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.
>

0 comments:

Post a Comment