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

Related Questions

I have two applications: c++ service and a RoR web server (they are both
I have two Android applications with a similar functionality but different drawables and layouts.
I have two separated applications, one written in Java and other in Erlang. Both
I have two different applications and I am using GroupLab Networking to communicate between
I have two web applications in the same solution. They both use different membership/profile
I have two applications with a single domain name ( www.domain.com and test.domain.com ).
I have two (same) applications running on dev.example.com and beta.example.com with different databases. Everything
I have two applications Web Socket and Web Service created in .Net/Web Form and
I have two applications in my project 'test' the applications are one.mxml and two.mxml
public enum ObjectType { Country=0, Region=1, Province=2, City=3, Hotel=4 } I have two applications

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.