Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6001123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:47:26+00:00 2026-05-23T00:47:26+00:00

I have 2 website on my IIS7, I can put the same domain for

  • 0

I have 2 website on my IIS7, I can put the same domain for both of them, I want some cookies of both applications to be shared between them, so than I can create the cookie from one of them and read it from the other one, is that possible? do I need any custom configurations to do that?

note: My websites, 1 is asp.net forms website and the other is MVC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:47:27+00:00Added an answer on May 23, 2026 at 12:47 am

    When you create the cookie specify the domain:

    var cookie = new HttpCookie("foo", "bar")
    {
        // indicates that only server side scripts can read this cookie
        HttpOnly = true,
    
        // indicates that the cookie will be available throughout the entire domain
        Domain = "example.com"
    };
    Response.AppendCookie(cookie);
    

    Now on the other application you will be able to access this cookie (assuming of course it is running on the same domain):

    var cookie = Request.Cookies["foo"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, I have domain name abc.com I want both abc.com and www.abc.com can
i have website of application which sells applications online.on the home page i want
I've got IIS7 installed and have a simple website at: c:/inetpub/wwwroot/testsite I can copy
I have two copies of the same website on my IIS7.5 windows 2008 server:
I have publish my website in IIS7. It is running in DefaultAppPool. The Identity
I have website where users can login with their Facebook account. I am using
I have an Umbraco website that is running on IIS7.5 and is Load Balanced.
The situation: We have Windows 2008 web serverse with IIS7, (.NET4) We can comminicate
I've transferred my IIS6-based website to IIS7. It uses ISAPI Rewrite. I want to
I have an ASP.NET (.NET 4) website that uses http PUT for an .ashx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.