473,387 Members | 3,750 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,387 software developers and data experts.

FormsAuthentication.RedirectFromLoginPage is not passed fully qualified url

I have two web applications on the same server:

http://localhost/ModemUpgrade

and

http://localhost/TestFormAuth

The web.config of ModemUpgrade:

<authentication mode="Forms">
<forms name=".cuid"
loginUrl="http://localhost/TestFormAuth/MemberLogin.aspx" path="/">
</forms>
</authentication>

PROBLEM:
when I call FormsAuthentication.RedirectFromLoginPage from
MemberLogin.asp,

I notice that ReturnUrl=/ModemUpgrade/Agree.aspx
This keeps me on http://localhost/TestFormAuth/MemberLogin.aspx
because it doesn't have the fully qualified url
(http://localhost/TestFormAuth/Member...://localhost/M
odemUpgrade/Agree.aspx)
needed to complete the redirect

If I manually surf to:
http://localhost/TestFormAuth/Member...ade/Agree.aspx

the whole thing works...Please advise. Thanks.

Nov 16 '05 #1
3 3033
I'am also having this particular problem. It does not log in some of
the users already registered in the database. They get redirected to
the login page even though they provide the proper user name and
password. not sure what is going on. Searched the groups and not able
to get a good solution.

Thanks,

Sunil.B

"Jacob Crossley" <ja***********@hotmail.com> wrote in message news:<8s***************@fe25.usenetserver.com>...
I have two web applications on the same server:

http://localhost/ModemUpgrade

and

http://localhost/TestFormAuth

The web.config of ModemUpgrade:

<authentication mode="Forms">
<forms name=".cuid"
loginUrl="http://localhost/TestFormAuth/MemberLogin.aspx" path="/">
</forms>
</authentication>

PROBLEM:
when I call FormsAuthentication.RedirectFromLoginPage from
MemberLogin.asp,

I notice that ReturnUrl=/ModemUpgrade/Agree.aspx
This keeps me on http://localhost/TestFormAuth/MemberLogin.aspx
because it doesn't have the fully qualified url
(http://localhost/TestFormAuth/Member...://localhost/M
odemUpgrade/Agree.aspx)
needed to complete the redirect

If I manually surf to:
http://localhost/TestFormAuth/Member...ade/Agree.aspx

the whole thing works...Please advise. Thanks.

Nov 16 '05 #2
For some reason no one is answering. : - (
"Sunil" <su******@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
I'am also having this particular problem. It does not log in some of
the users already registered in the database. They get redirected to
the login page even though they provide the proper user name and
password. not sure what is going on. Searched the groups and not able
to get a good solution.

Thanks,

Sunil.B

"Jacob Crossley" <ja***********@hotmail.com> wrote in message

news:<8s***************@fe25.usenetserver.com>...
I have two web applications on the same server:

http://localhost/ModemUpgrade

and

http://localhost/TestFormAuth

The web.config of ModemUpgrade:

<authentication mode="Forms">
<forms name=".cuid"
loginUrl="http://localhost/TestFormAuth/MemberLogin.aspx" path="/">
</forms>
</authentication>

PROBLEM:
when I call FormsAuthentication.RedirectFromLoginPage from
MemberLogin.asp,

I notice that ReturnUrl=/ModemUpgrade/Agree.aspx
This keeps me on http://localhost/TestFormAuth/MemberLogin.aspx
because it doesn't have the fully qualified url
(http://localhost/TestFormAuth/Member...://localhost/M odemUpgrade/Agree.aspx)
needed to complete the redirect

If I manually surf to:
http://localhost/TestFormAuth/Member...ade/Agree.aspx
the whole thing works...Please advise. Thanks.

Nov 16 '05 #3
For some reason no one is answering. : - (
"Sunil" <su******@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
I'am also having this particular problem. It does not log in some of
the users already registered in the database. They get redirected to
the login page even though they provide the proper user name and
password. not sure what is going on. Searched the groups and not able
to get a good solution.

Thanks,

Sunil.B

"Jacob Crossley" <ja***********@hotmail.com> wrote in message

news:<8s***************@fe25.usenetserver.com>...
I have two web applications on the same server:

http://localhost/ModemUpgrade

and

http://localhost/TestFormAuth

The web.config of ModemUpgrade:

<authentication mode="Forms">
<forms name=".cuid"
loginUrl="http://localhost/TestFormAuth/MemberLogin.aspx" path="/">
</forms>
</authentication>

PROBLEM:
when I call FormsAuthentication.RedirectFromLoginPage from
MemberLogin.asp,

I notice that ReturnUrl=/ModemUpgrade/Agree.aspx
This keeps me on http://localhost/TestFormAuth/MemberLogin.aspx
because it doesn't have the fully qualified url
(http://localhost/TestFormAuth/Member...://localhost/M odemUpgrade/Agree.aspx)
needed to complete the redirect

If I manually surf to:
http://localhost/TestFormAuth/Member...ade/Agree.aspx
the whole thing works...Please advise. Thanks.

Nov 16 '05 #4

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

Similar topics

0
by: Jacob Crossley | last post by:
I have two web applications on the same server: http://localhost/ModemUpgrade and http://localhost/TestFormAuth The web.config of ModemUpgrade:
3
by: Jacob Crossley | last post by:
I have two web applications on the same server: http://localhost/ModemUpgrade and http://localhost/TestFormAuth The web.config of ModemUpgrade:
1
by: TaeHo Yoo | last post by:
Thanks in advance, What I did was 1. add these lines in web.cofig file <authentication mode="Forms"> <forms name="frmAuthentication" loginUrl="login.aspx" protection="All" path="/" />...
2
by: Ben Fidge | last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the HttpContext.Current.User.Identity.Name property? A base class for each page contains the follwoing property: public...
2
by: tshad | last post by:
I have a logon page that is may be called by the Forms Authentication setup. This would put a ReturnURL as part of the URL. I would normally then just issue a: ...
2
by: Grant Merwitz | last post by:
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using: FormsAuthentication.RedirectFromLoginPage(UserName.Text, false); Now when i...
1
by: Dean R. Henderson | last post by:
I setup FormsAuthentication on a couple websites where it has been working as expected for a long time. I used this code to setup the same type of authentication on a new website I am working on...
1
by: Jeremy Chapman | last post by:
I have built a web app. While testing I have found that if I browse to a page in the app, then get redirected to the login page and enter my credentials. The...
2
by: rn5a | last post by:
A web.config file has the following code: <configuration> <system.web> <authentication mode="Forms"> <forms name="NETConnectCookie" loginUrl="Login.aspx"> <credentials passwordFormat="SHA1"/>...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.