# How to get Logged in session from external source through APi?

**URL:** <https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130>\
**Category:** Questions\
**Created:** [July 15, 2021, 11:13am UTC](https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130 "2021-07-15T11:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![himanshu.gupta1](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@himanshu.gupta1](https://devforum.okta.com/u/himanshu.gupta1)\
**Post date:** [July 15, 2021, 11:13am UTC](https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130/1 "2021-07-15T11:13:28Z")

</div>

Hi there,

I am using Octa Developer account and authenticating users using Octa IDP, can anyone please tell me how to get sessions for logged in user so i can sync my Application with octa ?

I am using ruby-saml gem.

Thanks.

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [July 15, 2021, 11:27pm UTC](https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130/2 "2021-07-15T23:27:32Z")

</div>

Hi @himanshu.gupta1! Are you looking for our [Get Current Session Endpoint](https://developer.okta.com/docs/reference/api/sessions/#get-current-session)?

---

<div class="post-metadata">

**Author:** ![himanshu.gupta1](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@himanshu.gupta1](https://devforum.okta.com/u/himanshu.gupta1)\
**Post date:** [July 16, 2021, 3:58am UTC](https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130/3 "2021-07-16T03:58:41Z")

</div>

Hi @sigama, thanks for the response. i have gone through this link but not able to get **okta\_session\_cookie** from where should i get this, i have checked the browser cookies nothing found related to okta\_session\_cookie? as i am new in Okta.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:47pm UTC](https://devforum.okta.com/t/how-to-get-logged-in-session-from-external-source-through-api/15130/4 "2024-02-08T18:47:42Z")

</div>


