# Setting the session token '\_t' on the entire domain, not just my subdomain

**URL:** <https://meta.discourse.org/t/setting-the-session-token--t-on-the-entire-domain-not-just-my-subdomain/43254>\
**Category:** Development\
**Created:** [Avril 26, 2016, 3:55 UTC](https://meta.discourse.org/t/setting-the-session-token--t-on-the-entire-domain-not-just-my-subdomain/43254 "2016-04-26T15:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![reverend\_paco](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@reverend\_paco](https://meta.discourse.org/u/reverend_paco)\
**Post date:** [Avril 26, 2016, 3:55 UTC](https://meta.discourse.org/t/setting-the-session-token--t-on-the-entire-domain-not-just-my-subdomain/43254/1 "2016-04-26T15:55:27Z")

</div>

Continuing the discussion from [Encryption of \_forum\_session cookie](https://meta.discourse.org/t/encryption-of--forum-session-cookie/26529/3):

I have a site set up at [forum.wordadoplicus.com](http://forum.wordadoplicus.com). When a user logs in, it sets a cookie ‘\_t’ that I could use to look up user info in the database. However, the set-cookie command is being used for the subdomain itself, and not for other subdomains. This means that when a user navigates to [something.wordadoplicus.com](http://something.wordadoplicus.com), this \_t is not being sent.

Is there a configuration parameter somewhere I can change to affect this, so that post-login, the set-cookie response header sets it for “.wordadoplicus.com” instead of “[forum.wordadoplicus.com](http://forum.wordadoplicus.com)” ?

thanks,  
daniel

---

_[View the full topic](https://meta.discourse.org/t/setting-the-session-token--t-on-the-entire-domain-not-just-my-subdomain/43254)._
