Re: RedirectFromLoginPage wont redirect



Well it isn't redirecting. When I use response.redirect I get a blank screen??
--
Jerry J


"Dominick Baier" wrote:

well - what RedirectFromLoginPage internally does is this:

FormsAuthentication.SetAuthCookie(...)
Response.Redirect(FormsAuthentication.GetRedirectUrl())

split it up in these two operations to see where the problem is more easily....


-----
Dominick Baier (http://www.leastprivilege.com)

I have a web application that uses Forms Authentication. The first
version of the web application has been working fine. Clients on the
internet can hit my site using my IP Address in the URL such as
http://66.62.871.1/MyVirtualFolder/webpage.aspx. The login page gets
displayed as expected. The user puts in UN and PW. My code
authenticates and then I call RedirectFromLoginPage(sUsrName, false);
This was all working fine until the day I updated the site with new
aspx files and dll. Now, when a user hits my site using the IP
address, the RedirectFromLoginPage does not redirect. The login page
remains. If, however, I am in my LAN and use
http://serverName/MyVirtualFolder/webpage.aspx the page redirects as
expected.

There is an exception to this, however. If I use the IP address from
my development computer everything works OK. This remains a mystery to
me.

I initially thought that it had something to do with my file security.
To test that I set my web config file to use impersonation. I used the
server's Administrator name and PW as cridentials, however, this did
not help. I also, in desperation, gave "Everyone" full access to all
the web files. Still the same problem.

I have spent days trying to get to the bottom of this but am out of
ideas.

I am still using asp.net 2003 with runtime 1.1

Can someone out there help?




.



Relevant Pages

  • Re: RedirectFromLoginPage wont redirect
    ... Dominick Baier ... The login page gets ... The user puts in UN and PW. ... the RedirectFromLoginPage does not redirect. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Authentication login screen appears on both frames of the framset
    ... wouldn't be redirecting to the login. ... give all users permission to the page that shouldn't redirect, ... >> If you're using forms authentication when a user is not authorized to see ... >> page they are automatically redirected to the login page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RedirectFromLoginPage problem, not redirecting to members page
    ... I am having problem with redirecting the user form the login page to members ... page using RedirectFromLoginPage method. ... add new folder and name it as 'members'. ...
    (microsoft.public.dotnet.security)
  • Re: Login security for a form
    ... If its redirecting to the login page it sounds like either the cookie ... login.aspx to authenticate me. ...
    (microsoft.public.dotnet.framework.aspnet)
  • unexpected authectication behavior in ASP.NET example app. Apress
    ... Programming in C# ... IIS 5.1 on XP Pro, I have the checkbox 'use windows integrated ... you to login if you weren't already logged in by redirecting you to the login ...
    (microsoft.public.dotnet.languages.csharp)