Hi all,
Have made 1 report to kill ideal sessions for Nav 2009 Sp1 SQL but though Report killed session of 'x' login same was actually active on another session.
So i tried deleting session manually by 'sa' login. From my computer session got deleted but after 2 min when i open form on deleted session it actually opened without any error. Similarly same session started showing in 'sa' login. Client has 10 user license so I even logged in for all users but still it did not deleted the session.
If you have any suggestion or solution to this problem please let me know.
0
Comments
I have found and modifyed this with a SQL-jobb runing once per hour an run the procedure below.
(I have not used the "netsend")
Hope it can help You
Regards
Christer
Christer in Stockholm, Sweden
Hi ,
you can use this Function to resolve your issue,
1- you should use 2 variables:
Name DataType Subtype Length
DB Record Database
Session Record Session
2- implement your function like this:
KillSession()
DB.SETRANGE("My Database",TRUE);
DB.FINDFIRST;
Session.SETRANGE("Database Name",DB."Database Name");
Session.SETRANGE("My Session",FALSE);
Session.SETFILTER("Idle Time",'>%1',1800000);
IF Session.FINDSET
THEN
REPEAT
Session.DELETE;
COMMIT;
UNTIL Session.NEXT=0;