Re: Login ctrl - cookies not accepted?
- From: "Gregory A. Beamer" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Nov 2009 12:02:36 -0800
=?Utf-8?B?THVib21pcg==?= <Lubomir@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:DE227538-E816-41E7-9A70-1AFCAD920839@xxxxxxxxxxxxx:
I placed a Login control in default.aspx page. I am using Form
authentication and SQL membership provider, OS is Vista 64, browser IE
8.
When I use URI for cookies (cookieless=UseUri) everything works fine.
If I use cookieless=UseCookies, after hitting Login button, user is
redirected back to default page and user is NOT loged on. Browser
doesn't show any rejected cookies, neither settings in browser are set
to reject cookies. I stopped antivirus for testing and it didn't help
either.
When user is redirected back to defalt.aspx page, no error message is
shown (message like "Login wasn't successfull ...")
Do you have any idea why it doesn't work or how to troubleshoot it?
If you are meaning. User hits default.aspx, user logs in, user still
sees login page? Then that is the expected behavior when you make
default.aspx the login page, as an unspecified page hit (no redirect
url) goes to default.aspx. I am not sure why cookieless would help here,
but that is what happens. This is why it is not a good idea to use
default.aspx as the login page. (You actually can get even worse errors
if you are not careful). In fact, if you do not redirect the user in
code, they will be logged in but never know it.
If, instead, you are hitting another page, then being sent to
default.aspx, you are not getting logged in. This could be for any
number of reasons and there is not enough information.
As for "login wasn't successful"? This indicates to me the user IS
logged in, but stuck in a loop because the default.aspx is the login
page.
Peace and Grace,
--
Gregory A. Beamer (MVP)
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************
.
- Follow-Ups:
- Re: Login ctrl - cookies not accepted?
- From: Lubomir
- Re: Login ctrl - cookies not accepted?
- References:
- Login ctrl - cookies not accepted?
- From: Lubomir
- Login ctrl - cookies not accepted?
- Prev by Date: Re: Wrong Database During High Web Server Load
- Next by Date: Re: Problem with reading JPEG images in .NET
- Previous by thread: Login ctrl - cookies not accepted?
- Next by thread: Re: Login ctrl - cookies not accepted?
- Index(es):
Relevant Pages
|