# From \_t cookie how to get the current user id?

**URL:** <https://meta.discourse.org/t/from--t-cookie-how-to-get-the-current-user-id/70220>\
**Category:** Development\
**Created:** [Setembro 17, 2017, 1:54pm UTC](https://meta.discourse.org/t/from--t-cookie-how-to-get-the-current-user-id/70220 "2017-09-17T13:54:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [Setembro 17, 2017, 5:51pm UTC](https://meta.discourse.org/t/from--t-cookie-how-to-get-the-current-user-id/70220/2 "2017-09-17T17:51:16Z")

</div>

Putting aside the part where this is a Bad Idea™ because eventually Discourse will update and this will break…

Are you sure you did that last step correctly? [https://play.golang.org/p/6bWfZ8uDX5](https://play.golang.org/p/6bWfZ8uDX5)

---

_[View the full topic](https://meta.discourse.org/t/from--t-cookie-how-to-get-the-current-user-id/70220)._
