I’m new to development for NAV. I seen a post previously on how to make users log off automatically when idle. however I do not know how to implement it. where in the designer do I place my code?
If you could refer to the specific post (or even just ask your question in the same thread), then it would be easier to help you, as there exists a few different solutions to do what you want.
If you are using Navision version older then 4.0 you can only kill idle sessions by setting using Expandit has referred by David. In later version you can kill session by deleting session in session virtual table.
You have virtual table 2000000009 – Sessions. That displays all connected sessions.
Create a codeunit to delete all sessions with your desired idle time.
Run that codeunit periodically using Job Scheduler.
I created a codeunit using session table. i have wriiten the code to delete the sessions of the user whose time limit is greater than 15 mins. But I dont know where to call this codeunit. Please help me. waiting for reply.
We use a product called Auto Close Idle Client that works awesome - you can set the time period, it will log people off who are idle longer than the time period. it also has an option to log off the most idle user if you happen to run out of licenses.