# Set custom cookie in Actions

**URL:** <https://community.auth0.com/t/set-custom-cookie-in-actions/119950>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [November 1, 2023, 12:23pm UTC](https://community.auth0.com/t/set-custom-cookie-in-actions/119950 "2023-11-01T12:23:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 17, 2023, 8:43pm UTC](https://community.auth0.com/t/set-custom-cookie-in-actions/119950/3 "2023-11-17T20:43:36Z")

</div>

Hi @jasekdominik34,

Welcome to the Auth0 Community!

Unfortunately, it is not possible to set a custom cookie in Actions. Instead, we recommend using the state to redirect users after login. You can find more information in this [reference post](https://community.auth0.com/t/redirect-using-cookies-after-login/85836).

Check out our [documentation on using state](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions) to redirect users after login.

> [@jasekdominik34](#):
>
> Followup question: What about deleting this cookie on logout? We could use `redirect URL` to redirect user to my app, which handles deleting cookie

Yes, you can clear the session cookie by sending the user to the logout endpoint. Refer to the following FAQ for details: [Clear Auth0 session cookie inside Action](https://community.auth0.com/t/clear-auth0-session-cookie-inside-action/115068)

Feel free to reach out if you have any further questions.

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/set-custom-cookie-in-actions/119950)._
