[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1095
  • Last Modified:

reading cookie on different domain

Our intranet site is something like http://intranet.company.com and an asp.net application runs when user goes to this address. The application reads a cookie and in its absense the app redirects to the login.aspx page. Upon successful login, the app creates a cookie storing the user info. This part has been running for quite some time.

Now the network admin created an 'alias' to this site that you can go to it just by typing 'http://intranet'. The app works fine here as well. The issue is since both these sites are technically the same, I want them to be able read the cookie created by the other.

In other words, if a user logs into to http://intranet and then opens a link like http://intranet.company.com/app1, the latter should recognize that a cookie has been created at 'http://intranet' and read the cookie and open app1 instead of redirecting to the login page.

I hope I've been clear enough.
Thanks
Arun
0
TMPSupport
Asked:
TMPSupport
  • 2
  • 2
1 Solution
 
RedKelvinCommented:
0
 
TMPSupportAuthor Commented:
sorry RedK, this will not work for me.
0
 
RedKelvinCommented:
why won't it work, is the root domain not the same?
0
 
TMPSupportAuthor Commented:
Ok, this was a part of a quick project, it would not be practical for me to spend so much time in trying to get another page. Also this would not suit our model in practice - creating another aspx page - while most of our projects have the default page and the rest are only ascx pages.

Thanks for your time, but I'm sorry.
Arun
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now