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.
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.
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
Tharanga Chandrasekara
4 comments
Skip to comment form
Thanks Taranga, but how can you run the page if license does not allow to any more connections?
Simply you cannot. You have to have at least one session available.
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
You need to have super permission to kill a session.