Solved

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

Posted on 2008-10-06
3
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2016 - not receiving mail 17 103
CSS for Popup in ASP.NET 4 49
Send parameters via datatable ajax call 4 48
Ajax calendar distorted 4 24
If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 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