473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unable to redirect after login

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

Jun 6 '07 #1
1 2519
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

<as*******@gmail.comwrote in message
news:11*********************@o11g2000prd.googlegro ups.com...
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

Jun 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one to log in or out. The form calls itself using a...
2
by: FN | last post by:
I'm using User.Identity.IsAuthenticated on all my pages (from a base class), and redirecting to a login page if not authenticated. The problem is that some pages are in subfolders and others are...
1
by: Sospeter | last post by:
Hi Ken, I have done that but still experiencing same problem. Tried the following i.e. turning smartnavigation = false and using server.transfer as below but nothing works. Please help. ...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: William Sullivan | last post by:
Have a frameset HTML page (parent) with child .aspx pages. When each of the child pages loads, it checks to see if the user is authenticated, and if not, redirects to the login page: ...
7
by: savvy | last post by:
I able to redirect the user to the index.aspx page after every successful login, but I dont want certain pages outside the folder to have a access to general public. So if they click that...
0
by: asnowfall | last post by:
After logging in, I am not able to redirect to the target url; and this happens only when I connect to the website using "http://machine- name:portname"; but not if I connect using either...
0
by: daonho | last post by:
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs) Dim strPath As String = HttpContext.Current.Request.Path() Dim cookie As...
3
by: jasonheath.net | last post by:
I apologize in advance for the length of this post. I wanted to get as much detail as possible in here. We have 1 web app that contains the functionality to do some single sign-on logic. The...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.