# Auth0 user session persistence under classic experience

**URL:** <https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827>\
**Category:** Get Help\
**Tags:** single-page-applicat, vuejs, login, auth0\
**Created:** [July 26, 2021, 4:33pm UTC](https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827 "2021-07-26T16:33:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gloria](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gloria/32/30761_2.png) [@gloria](https://community.auth0.com/u/gloria)\
**Post date:** [July 26, 2021, 4:33pm UTC](https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827/1 "2021-07-26T16:33:26Z")

</div>

- Background: Vue3 Single Page Application
- Issue: Auth0 classic experience ([Classic Universal Login Experience](https://auth0.com/docs/universal-login/classic-experience)), after user logged in, then refresh the page, the user is required to log in again (the session is not persisted)
- Question: In auth0, how to persist the login session when using Classic Experience?
- Definition and more info: [New Universal Login Experience](https://auth0.com/docs/universal-login/new-experience)
- Under title “How it is different from Classic Universal Login”, it says:

> Single Sign-on (SSO) and Silent Authentication will work properly, which does not happen in the Classic Experience.

---

<div class="post-metadata">

**Author:** ![marcus.baker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcus.baker/32/8586_2.png) [@marcus.baker](https://community.auth0.com/u/marcus.baker)\
**Post date:** [July 27, 2021, 1:00am UTC](https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827/2 "2021-07-27T01:00:32Z")

</div>

Hi!

That bullet point in the docs you pasted is for using social connections with auth0 Development Keys, which is not recommended or supported in a production environment.

The Auth0 session in the browser is handled by the auth0 cookie for both Classic Lock and New Universal Login.

Newer browser restrictions can make it harder for a SPA to perform silent authentication.

One way around this is to use a Custom Domain.  
You can also utilize Refresh Tokens as another avenue for SPAs.

Auth0 Authentication API Cookies:

> **[Authentication API Cookies](https://auth0.com/docs/manage-users/cookies/authentication-api-cookies)**
>
> Learn about Authentication API cookies, including what they are, what they are used for, and how they should be handled.

Auth0 Custom Domains:

> **[Custom Domains](https://auth0.com/docs/customize/custom-domains)**
>
> Understand how a custom domain (CNAME or vanity URL) can help you unify your brand and show continuity to your users.

Securing SPA apps with Refresh Token Rotation:

> **[Securing Single Page Applications with Refresh Token Rotation](https://auth0.com/blog/securing-single-page-applications-with-refresh-token-rotation/)**
>
> How Auth0 helps you securely maintain user sessions and engagement in the era of ITP

Hope this helps!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 27, 2021, 9:33am UTC](https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827/3 "2021-07-27T09:33:29Z")

</div>

Thanks for helping on this one Marcus!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 29, 2021, 8:42am UTC](https://community.auth0.com/t/auth0-user-session-persistence-under-classic-experience/66827/4 "2021-07-29T08:42:29Z")

</div>


