reading cookie on different domain

Posted on 2007-10-02
Last Modified: 2011-10-03
Our intranet site is something like and an 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, 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.
Question by:TMPSupport
    LVL 22

    Accepted Solution


    Author Comment

    sorry RedK, this will not work for me.
    LVL 22

    Expert Comment

    why won't it work, is the root domain not the same?

    Author Comment

    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.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now