TMPSupport
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
why won't it work, is the root domain not the same?
ASKER
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
Thanks for your time, but I'm sorry.
Arun
ASKER