# Hoe kan ik \_forum\_session en \_t voor een gebruiker genereren via code/API-aanroep of zonder in te loggen in de browser?

**URL:** https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895
**Category:** Feature
**Tags:** sso
**Created:** [25 juli 2022 om 15:12 UTC](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895 "2022-07-25T15:12:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [25 juli 2022 om 16:41 UTC](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895/2 "2022-07-25T16:41:48Z")

</div>

Can you back up and describe what problem having those cookies is going to solve?

What are you trying to accomplish? Are you trying to have Discourse authenticate against your app? Maybe look at [DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045)?

---

_[View the full topic](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895)._
