# How do we force to refresh user's login session(\_hsmem) ?

**URL:** <https://community.hubspot.com/t/how-do-we-force-to-refresh-users-login-session-hsmem/69069>\
**Category:** CMS Development\
**Created:** [November 11, 2022, 1:13am UTC](https://community.hubspot.com/t/how-do-we-force-to-refresh-users-login-session-hsmem/69069 "2022-11-11T01:13:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-shindo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@m-shindo](https://community.hubspot.com/u/m-shindo)\
**Post date:** [November 11, 2022, 1:13am UTC](https://community.hubspot.com/t/how-do-we-force-to-refresh-users-login-session-hsmem/69069/1 "2022-11-11T01:13:37Z")

</div>

We use CMS Hub and authentication is SSO(integrate with our cutomized authentication provider).

There is difference of expiration of session between Hubspot(7days) and Our authentication provider(30days).

We’d like to refresh session on not membership page by JavaScript because of display personalized content on not membership page.

Is it possible?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 15, 2022, 12:11am UTC](https://community.hubspot.com/t/how-do-we-force-to-refresh-users-login-session-hsmem/69069/2 "2022-11-15T00:11:15Z")

</div>

Hi, @m-shindo 👋 Thanks for reaching out. Hey, [@Phil\_Vallender](https://community.hubspot.com/t5/user/viewprofilepage/user-id/74) [@klloyd\_\_1](https://community.hubspot.com/t5/user/viewprofilepage/user-id/381293), do you have any experience here? Or thoughts on how @m-shindo might think about tackling this project?

Best,

Jaycee
