# 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:** 2

<div class="post-metadata">

### Author: ![rap1ds](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rap1ds/32/121941_2.png) [@rap1ds](https://meta.discourse.org/u/rap1ds)
#### Post date: [February 26, 2016, 10:01am UTC](https://meta.discourse.org/t/add-path-to-cookie/40218/2 "2016-02-26T10:01:15Z")

</div>

One addition. In this guide [Use a subfolder (path prefix) to serve Discourse with multiple servers sharing a domain](https://meta.discourse.org/t/discourse-in-a-subfolder-multiple-servers-sharing-a-domain/30514) it says that

> Note: This won’t work for serving multiple Discourse instances from different folders on the same domain. You need to use different subdomains so that each site can have different cookies.

So with this change you could remove that note. 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?

---

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