Re: Login ctrl - cookies not accepted?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



=?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! |
*******************************************
.



Relevant Pages

  • Re: Forms Based Authentication and the OpenWave Browsers
    ... Try taking this redirect out of the try...catch; ... > Authentication in cookie enabled WAP browsers. ... > Samsung Browser, Forms Authentication and RedirectFromLoginPage - This is ... > Open Wave Browser and Cookies - While regression testing my new change, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to share session with IE
    ... becuase I wasn't in a loggined session ... my browser module if necessary. ... bit more about how cookies and web apps work, and may or may not work ... "need to login" condition, and react accordingly. ...
    (comp.lang.python)
  • Re: using Perl to auto-login to capitalone.com
    ... >>I am attempting to write a Perl script that can login to my account at ... > more cookies. ... > Because you are looking to wrangle the HTTP request/response headers, ... > browser, Live HTTP Headers, that allows you to view and ...
    (perl.beginners)
  • Re: Computer login available?
    ... But, from what you say, this sounds like it isn't possible from the browser. ... Thanks for the confirmation that this is it not easily done in PHP. ... I don't know if cookies are stored as personal ... then I wouldn't even need to demand a login to my system. ...
    (alt.php)
  • Re: [PHP] http_request
    ... How do I return the cookies, headers etc. from the layer (which are ... How do I redirect browser from the layer.php to a page of the ...
    (php.general)