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   
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?


Skip to comment form

    • Anonymous on December 1, 2017 at 11:01 pm
    • Reply

    Thanks Taranga, but how can you run the page if license does not allow to any more connections?

  1. Simply you cannot. You have to have at least one session available.

  2. I am getting an error:

    You do not have permission to modify the 'Session List' Page.

    Contact your system administrator to have your permissions changed.

    Do you know which permissions are required?

    Thank you for this help.


  3. You need to have super permission to kill a session.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.