hello@tharangac.com New Zealand & Australia

How to kill a session in Microsoft Dynamics NAV 2013 using session page in the windows client.

If you want to kill a session by force then use following method. There are few other methods available to achieve the same output, but this is one of the easiest methods.
1. First open the Microsoft Dynamics NAV Development environment. 
2. Open Object designer (Shift + F12)
3. Go to Page 9506 (Session List)
4. Create a new action and name it as “Kill Session”
5. Go to C/AL code editor and enter below code in the “OnAction” trigger.
 IF CONFIRM ('Do you want to kill the session ?") THEN   
STOPSESSION("Session ID");
6. Save and compile the page.
7. Run page 9506 and select the session you want to kill 
8. Hit the “Kill Session” button.


That is it! 

Thank you and Regards,
Tharanga Chandrasekara

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?