URL Forwarding Problem

B

Binod Nair

Hi All,

I have an ASP.NET appication running on http://xx.xxx.xxxx.xx/aspApplication
and I have a domain http://www.mydomain.com registered at godaddy.com for
this application.I have setup domain forwarding at goDaddy.com to forward to
http://xx.xxx.xxxx.xx/aspApplication. I am using Forms Authentication on the
application.Now the problem i am facing is , when i login to the application
through http://xx.xxx.xxxx.xx/aspApplication everything works fine and get
authenticated and logged in. But when I login in through
http://www.mydomain.com , the cookie gets blocked and I am prevented from
logging in(i am not getting authenticated).

The path in the web.config file is pointed to path="/".

Any help appreciated.

--binod
 
S

Scott Allen

Not sure what you mean by cookie is blocked, but I think I the problem
you are running into is that a cookie can only be set and read by the
domain in which they are active. So a cookie set in mydomain.com
cannot be read by xx.xxx.xxx.xx or any other domain except
mydomain.com. Is that the problem you are facing?
 
B

Binod Nair

I am logging into the application using FormsAuthentication and setting
FormsAuthentication.SetAuthCookie(userName,false)

When i browse the site by typing in www.mydomain.com , IE says cookie is
blocked.If I trust that cookie, it works fine.I don't want to do that.

But if I go to http://xx.xxx.xxxx.xx/aspApplication , no problems.

--binod
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top