473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.

Apr 7 '07 #1
2 1057
without seeing the code there is little to offer except generic help references

google:

asp.net login tutorial
"Erik Lautier" <la*****@gmail.comwrote in message news:11**********************@b75g2000hsg.googlegr oups.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.

Apr 7 '07 #2
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" <la*****@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.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.
Apr 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Dave win | last post by:
howdy.... plz take a look at the following codes, and tell me the reason. 1 #define swap(a,b) a=a^b;b=b^a;a=a^b 2 3 int main(void){ 4 register int a=4; 5 register int b=5;...
65
by: Spiros Bousbouras | last post by:
Has anyone found that declaring variables register affected speed of execution ? If yes on what hardware and around which year ?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.