Hi,
I'm new to Navision development (3 weeks), is there a way to limit a user to at most 2 logins to server? (Using NAV 3.7)
i.e. Is there a way to see if other sessions are open for the current user?
Because for some reason some users feel the need to open more than 2 sessions. ](*,)
Thanks
Kind Regards,
Ewald Venter
0
Comments
If you are using sql db you can find code on mibuso for disconnecting them when they have been idle too long.
You can check active sessions using database->information->sessions->current sessions. There you can also kick them.
The code I got can help, but is there no way to query the Database sessions table with C/AL code?
What I plan to do is to edit CU 1. When the user logs on and CU 1 executes, check how many times the user is logged on, if more than 2, kill the session.
Ewald Venter
Here the code: This code will close the client.
viewtopic.php?f=5&t=31486