Solved

asp.net Using Tilde "~" in path gives ip adress and port instead of domain name.

Posted on 2008-10-06
3
247 Views
Last Modified: 2012-05-05
I'm deploying a application and i got a problem with the url resolution on the server side.

When I'm login, the browser detect my authentication cookie as a third-party Cookie.

My investigations leed me to think it's the redirection links appear to resolve to a IP adress and a port number instead of my subdomain.
(i got http://xxx.xxx.xxx.xxx:xxx/login.aspx instead of http://sub.myDomain.com/login.aspx) I got the corect adress in the adress bar.

I think our in-house sysadmin put my app on is iis server as a "web app" that lisent on a specific port, then he redirect it somewere to sub.myDomain.com. But how those thing works is not my duty.

What could I do or ask to my in-house sysadmin?
 


0
Comment
Question by:David Robitaille
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 22653037
Try to set the Domain Propety when you setup/create a cookie

response.cookies("TEST").domain = "yourdomain.com"

this way system will ignore sub domain.
0
 
LVL 18

Author Comment

by:David Robitaille
ID: 22653156
doesn`t help.
<authentication mode="Forms">
<forms name=".AuthCookie" timeout="30" slidingExpiration="true" domain="myDomain.com" />
</authentication>
i dont create cookies for the main domain or anything.it just the automatic thisn that asp.net does to create the login...
 if i goes in the page - Web page privacy policy in IE, i got the  http://sub.myDomain.com and some other entry like http://xxx.xxx.xxx.xxx:xxx/login.aspx
0
 
LVL 18

Accepted Solution

by:
David Robitaille earned 0 total points
ID: 22653357
i got a talk with my sys admin he removed the  sub.myDomain.com from the adress thing. so now when you go to   http://sub.myDomain.com, you are redirected to  http://xxx.xxx.xxx.xxx:xxx/ and evrything works... (it not perfect but it works...)
 
 
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rerouting users to DR CAS server exchange 2013 3 37
options for ipv4 failover 2 25
DNS issues after a power outage 3 23
asp.net mvc5 6 16
I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question