Unable to redirect after login

A

asnowfall

After logging-in, I am not able to redirect to target.aspx. I am using
System.Web.UI.WebControls.Login class in a
simple sample code for Form based authentication . Redirecting to
target.aspx works when I use either
"http://localhost:8080/" or "http://IP:8080", but not when I use
machine name in URL, example http://machine-name:8080


I overloaded OnLoggingIn(), Authenticate() and OnLoggedIn(); and
none of them got called; and this behaviour was seen whenever I used
http://machine-name:8080. The only one event that I got fired was
Init().

When I used "http://localhost:8080/", every event got fired.
Please let me know, how to tackle this issue.


Thanks
Ramesh
 
M

Mike

if your entire app is running under port :8080 just redirect to your page
after they log in

like

if(userIsValid)
{
response.redirect("~/takethemhere.aspx");
}
else
{
response.write("your not worthy");
}

If your only your redirect page is under port :8080 it should work;

try and access it from another computer other then your local box. I've
discovered (not all the time but sometimes) that I would get an error when
trying to access http://computername:412/web.aspx from my pc but if I went
to another pc and try to access it I was fine, so try that and see what
happens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top