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

  • Home
  • SEARCH
  • 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 636395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:30:37+00:00 2026-05-13T20:30:37+00:00

I have two applications on my webserver. myserver.com/ApplicationA myserver.com/ApplicationB Both applications are using similar

  • 0

I have two applications on my webserver.
myserver.com/ApplicationA
myserver.com/ApplicationB

Both applications are using similar codebases and so there are several overlaps in their cookie names, which are causing problems…

I’m aware that it is possible to limit a cookie in ASP.Net so that only applications on a certain “Path” can access it. However, what I’d really like to do this without having to make any code changes to either application.

Is it possible to configuare an ASP.Net application to default to limiting ALL of its cookies to a certain path?

Thanks,
Neil

  • 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-13T20:30:37+00:00Added an answer on May 13, 2026 at 8:30 pm

    Sadly the web.configuration httpCookies element only allows you to set the default domain, and not the path.

    You’d need to set the Path property as you write the cookie, which means that you will need to make some code changes – your best bet would probably be to factor out cookie writing to a shared class, and then use either a value from the web.config or get the application root path to set the property correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 519k
  • Answers 519k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Not truly an answer here, because I'm using quite the… May 16, 2026 at 8:34 pm
  • Editorial Team
    Editorial Team added an answer In SSMS, right click on the server and choose "Properties".… May 16, 2026 at 8:34 pm
  • Editorial Team
    Editorial Team added an answer The problem with using TLS is that you force thread… May 16, 2026 at 8:34 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have two applications: c++ service and a RoR web server (they are both
We're seeing an odd pattern in our QA Lab. We have two ASP.NET applications,
I have two applications that use the same data to create a UI, one
I have two rails applications. In the first application i have the following method
I have two small VB.NET applications that connect to the same Oracle database. One
We have two distinct agile teams, each working on separate, but related, applications. Each
I have two public websites (foo.com and bar.com) that are pointed to a hardware
I am setting up an Apache2 webserver running multiple Ruby on Rails web applications
I have been wondering for a while, after asking different people and without any
I have seen this for a long time, and finally decided to put the

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.