# Auto logout after every tranasaction & Change Due message box

**URL:** <https://forum.sambapos.com/t/auto-logout-after-every-tranasaction-change-due-message-box/2086>\
**Category:** V4 Question\
**Created:** [August 10, 2014, 4:16pm UTC](https://forum.sambapos.com/t/auto-logout-after-every-tranasaction-change-due-message-box/2086 "2014-08-10T16:16:21Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [August 12, 2014, 7:31pm UTC](https://forum.sambapos.com/t/auto-logout-after-every-tranasaction-change-due-message-box/2086/18 "2014-08-12T19:31:43Z")

</div>

Hello. Show message action does not blocks action execution so user log out action works before user closes message box. This probably prevents screens from switching. Either logout before displaying message box or use `Ask Question` action with a single `OK` button instead of message box. If it does not work assigning logout action to an automation command will work.

You can read more about `Ask Question Action` here.

> [@\[New 4.1.37\] Ask Question Action](http://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414):
>
> This feature was a missing piece in our automation system. Now you can ask questions to user and execute a command with selected command parameter. I’ll add more tutorials but I’ll show some brief examples. For example you can ask if he wants to print a bill. It executes Print Bill command by sending selected Button to Command Value parameter. You can define values for buttons. For example that can be asked when discount button clicked. When No discount butto…

---

_[View the full topic](https://forum.sambapos.com/t/auto-logout-after-every-tranasaction-change-due-message-box/2086)._
