Solved

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

Posted on 2008-10-06
3
245 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:adilkhan
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now