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?

4 comments

Skip to comment form

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

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

    • Unknown on December 7, 2017 at 8:25 pm

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

  1. 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.

    Jason

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

Comments have been disabled.