# How to use SSO (Discourse on subdomain)

**URL:** <https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630>\
**Category:** Self-hosting\
**Created:** [December 22, 2017, 3:53pm UTC](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630 "2017-12-22T15:53:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [December 22, 2017, 4:39pm UTC](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630/4 "2017-12-22T16:39:11Z")

</div>

> [@Jean-Michel25](#):
>
> 3/ external site open a session ?

Here external site received successful logged-in user details. Yes you can start a session.

> [@Jean-Michel25](#):
>
> what about set\_key(
> 
> I cannot find this function in this script…

It is just a placeholder. You have to replace your own code to create a new session in your website.

_Also since the script you referred is not official I don’t know whether it is valid working one or not._

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630)._
