# Logout by a button

**URL:** <https://forum.inductiveautomation.com/t/logout-by-a-button/44313>\
**Category:** Ignition\
**Created:** [March 10, 2021, 3:11pm UTC](https://forum.inductiveautomation.com/t/logout-by-a-button/44313 "2021-03-10T15:11:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hieule221097](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hieule221097](https://forum.inductiveautomation.com/u/hieule221097)\
**Post date:** [March 10, 2021, 3:11pm UTC](https://forum.inductiveautomation.com/t/logout-by-a-button/44313/1 "2021-03-10T15:11:58Z")

</div>

I want to logout by a button but with the code system.security.logout() it doesn’t clear for me.
