25 October 2014

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


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


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