Re: login page stays on login page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi:
The symptoms you suggest lead me to believe that you are probably running
into a cookies issue (browser security? domain misconfiguration on your
production server), due to environmental setup.

The way to confirm would be to use a HTTP sniffer like
http://www.iewatch.com or if you are using Firefox
https://addons.mozilla.org/en-US/firefox/addon/3829 to examine the http
traffic between your browser and your web server.

It seems your web server is redirecting your browser back to the web page
(even on successful login). If that is true you should see the HTTP status
302 response from your webserver. In that request examine which page is
issuing the 302. In addition examine the response headers and verify that
you are indeed receiving the ASP.NET forms authentication cookie on
successful authentication from the webserver. In addition confirm that the
cookie is round-tripping properly between the web server and the browser by
examining the request and response headers for subsequent requests.

My gut is that this has nothing to do with the login control flag(s).
Even if I'm wrong on that, examining and comparing the HTTP headers between
your production and dev environment is likely to give you insights into the
root cause of the problem.

Cheers,
-Naraen
http://naraen.spaces.live.com



"Shannon" <Shannon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:353A6F4D-6ECB-4093-A2E2-EFECE837AB05@xxxxxxxxxxxxxxxx
I am trying to publish an application to a server that I do not have
desktop
access to because of our hosting environment. I publish to a file share.
The WEB site has been configured by the hosts personnel.

When I deploy to my localhost or dev server everything work like it
should,
Entering a valid user name and password redirectos me to the appropriate
page. When I publish to the staging server and try to login, the login
page
just redisplays itself when I try to log in with valid credentials. If I
login with incorrect credentails, I get the invalid credentials message,
which leads me to believe that I am accesses the DB ok.

The loginpage.cs has no code in it and the aspx code looks like:

<asp:Login ID="EdbLogin" runat="server" SkinID="LoginView"
DisplayRememberMe="False"
Style="text-align: left" OnLoggedIn="EdbLogin_LoggedIn"
DestinationPageUrl="~/norole.aspx">
</asp:Login>

The norole.aspx page has logic to redirect the application based on the
user's role.

I have tried to replicate the problem on one of the servers that I have
access to and have not been able to replicate the error.

Does someone know if this is a configuration issue and what I might be
able
to tell the host personnel to fix this?

Thanks Shannon


.



Relevant Pages

  • Re: How to send a key event to another process?
    ... Browser sends a GET or POST HTTP request to web server ... Web server decodes GET/POST URL and determines which CGI program to call ...
    (comp.os.linux.misc)
  • Re: Anybody used htaccess in a form?
    ... scramble up the entire page's HTML until login. ... requests defined in the HTTP protocol and will issue the necessary ... user gives the username and password to the browser. ... Note here that the choice of server side language is irrelevant. ...
    (uk.net.web.authoring)
  • Re: Secure automation?
    ... To provide secured web services, a server SSL certificate is ... The downside with this is that the web server will ask ... To be able to verify a server certificate, a web browser needs to ...
    (comp.security.unix)
  • Re: Secure automation?
    ... To provide secured web services, a server SSL certificate is ... The downside with this is that the web server will ask ... To be able to verify a server certificate, a web browser needs to ...
    (comp.security.unix)
  • Re: edit and/or copy/paste access with prudent security also
    ... for both mapping and non-mapped when my remote machine ... matches a server machine login with the appropriate share permissions ... > Basically you need to use an account from the web server. ...
    (microsoft.public.inetserver.iis.security)