Re: RedirectFromLoginPage wont redirect



Dominick,

I found that the problem was somehow connected to SmartNavigation. When I
turned off SmartNavigation, the redirection started to work. Your input did
help me find the problem.

Thanks.

--
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

  • Blank screen when certain users log into server
    ... the admin login or one other ... Failed to perform redirection of folder Desktop. ... my NETLOGON share on the Domain Controller) ...
    (microsoft.public.windows.terminal_services)
  • Redirect Favorites Folder via GPO
    ... You could set the key at login via a script. ... Folder redirection in place for -My ... >working can add favorites, when logging off and on again ...
    (microsoft.public.win2000.security)
  • Home page redirection, where is it best done ?
    ... to load a webpage, ... IP, default router address etc. ... Where should the homepage redirection be done, ... packet to the login webserver with a change in the destination IP ...
    (microsoft.public.inetserver.asp.general)
  • Home page redirection, done at default router or use dummy DNS
    ... to load a webpage, ... IP, default router address etc. ... Where should the homepage redirection be done, ... packet to the login webserver with a change in the destination IP ...
    (comp.os.linux.networking)
  • Re: POST, GET and variables ?
    ... Ie. if the login is successful, you'll never see the result of the real print_rbecause of the redirection. ... Humour me and run the test case so that a) the login crendentials you input are wrong so you don't log in and b) comment the header and exit lines so that you are not redirected to another page after successfull login. ... The empty array() can be explained if the page is redirected. ...
    (comp.lang.php)