# Add path to cookie

**URL:** https://meta.discourse.org/t/add-path-to-cookie/40218
**Category:** Development
**Created:** [February 26, 2016, 9:42am UTC](https://meta.discourse.org/t/add-path-to-cookie/40218 "2016-02-26T09:42:05Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [March 7, 2016, 6:43pm UTC](https://meta.discourse.org/t/add-path-to-cookie/40218/6 "2016-03-07T18:43:58Z")

</div>

I tested the change and it’s safe. Sessions aren’t invalidated. I committed the change today.

> [@rap1ds](#):
>
> There’s no need for different subdomain if the cookies are scoped by the path. Or are there any other reasons why one couldn’t host two Discourse instances from different folders?

Serving multiple Discourse instances from different paths on the same domain will most likely work now, but note that the instances can’t be served from one [multisite setup](https://meta.discourse.org/t/multisite-configuration-with-docker/14084). Multisite is still keyed off of domain, not path.

---

_[View the full topic](https://meta.discourse.org/t/add-path-to-cookie/40218)._
