473,396 Members | 2,092 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,396 software developers and data experts.

URL Forwarding Problem

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
Nov 18 '05 #1
2 1649
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?

--
Scott
http://www.OdeToCode.com

On Thu, 22 Jan 2004 08:27:34 -0600, "Binod Nair"
<na*******@hotmail.com> wrote:
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


Nov 18 '05 #2
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

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:o3********************************@4ax.com...
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?

--
Scott
http://www.OdeToCode.com

On Thu, 22 Jan 2004 08:27:34 -0600, "Binod Nair"
<na*******@hotmail.com> wrote:
Hi All,

I have an ASP.NET appication running on http://xx.xxx.xxxx.xx/aspApplicationand 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 tohttp://xx.xxx.xxxx.xx/aspApplication. I am using Forms Authentication on theapplication.Now the problem i am facing is , when i login to the applicationthrough http://xx.xxx.xxxx.xx/aspApplication everything works fine and getauthenticated 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

Nov 18 '05 #3

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

Similar topics

0
by: Anu | last post by:
Hi everyone, I have just joined the group. I need your expert comments on my problem urgently. I am trying to establish SSH forwarding for establishing connections from my web server (obsgeosn) to...
1
by: Binod Nair | last post by:
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...
1
by: martijn | last post by:
H! I'm busy with testing python and now i'm trying to check if a url makes a forward to a other location with the same content. So it will be possible to scan unique website's. I already made...
1
by: Jesse Rosenthal | last post by:
Hello all, I'm writing a script which will backup data from my machine to a server using rsync. It checks to see if I am on the local network. If I am, it runs rsync over ssh to 192.168.2.6...
0
by: nicholas | last post by:
I use session variables that stores data for a shopping basket. The site runs at www.mysite.com/france and works fine. But I also have the domainname: www.mysiteforfrance.com So, on a Plesk...
0
by: Daniel P. | last post by:
Can anyone advise me for a staring point where I can learn about how to do forwarding? What I need is to learn how to have IIS machine that is exposed to the outside world that does only...
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
0
by: Nick Caramello | last post by:
We are in the process of prototyping an architecture for a multi-tier application, and have run into the following problem: 1) We have a client application who calls a method sending over a...
5
by: Dave | last post by:
Hi All, I'm experiencing problems with sending mail using mail() to forwarded email accounts. The problem seems to revolve around the optional 4th argument of mail(), namely 'additional headers'....
6
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.