# Okt session management

**URL:** <https://devforum.okta.com/t/okt-session-management/11450>\
**Category:** Questions\
**Created:** [October 22, 2020, 4:04pm UTC](https://devforum.okta.com/t/okt-session-management/11450 "2020-10-22T16:04:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysharath](https://avatars.discourse-cdn.com/v4/letter/y/96bed5/32.png) [@ysharath](https://devforum.okta.com/u/ysharath)\
**Post date:** [October 22, 2020, 4:04pm UTC](https://devforum.okta.com/t/okt-session-management/11450/1 "2020-10-22T16:04:35Z")

</div>

Hi there,  
Am building an angular application authentication is performed through okta. The question I had was, how would I perform session management of the user and logout with okta recommended approch? would you mind writing few lines before you point to a link on this ask,pls . thanks.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [October 22, 2020, 10:39pm UTC](https://devforum.okta.com/t/okt-session-management/11450/2 "2020-10-22T22:39:13Z")

</div>

@ysharath

1. Okta uses a cookie-based authentication mechanism to maintain a user’s authentication session across web requests. The Okta Sessions API provides operations to create and manage authentication sessions for users in your Okta organization.  
Here is more [reference](https://developer.okta.com/docs/reference/api/sessions/)
2. Logout means close a user’s session. You can refer the [API endpoint](https://developer.okta.com/docs/reference/api/sessions/#close-session).

As you are using Angular library, here is the example of [sign-out-of-your-app](https://developer.okta.com/docs/guides/sign-users-out/angular/sign-out-of-your-app/) with angular library. and the example of [sign the user out of Okta](https://developer.okta.com/docs/guides/sign-users-out/angular/sign-out-of-okta).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 25, 2024, 6:43pm UTC](https://devforum.okta.com/t/okt-session-management/11450/3 "2024-01-25T18:43:32Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
