Session killing in NAV 2009

valanr
Member Posts: 22
Dear Friends
For Dynamics Nav 6.0(2009) i am trying to delete the session table records with the code
gSession.SETFILTER("Idle Time",'>%1',Setup."Session Idle Time");
IF gSession.FINDSET THEN
REPEAT
gSession.DELETE;
COMMIT;
UNTIL gSession.NEXT =0;
The record count reduces from the session table but the NAV client doesnt closing like previous versions(4.0)
Its not allowing other user to enter in to the killed session
Can anyone suggest a solution to kill the idle session in NAV 2009?
Thanks in advance
Regards
Valan
For Dynamics Nav 6.0(2009) i am trying to delete the session table records with the code
gSession.SETFILTER("Idle Time",'>%1',Setup."Session Idle Time");
IF gSession.FINDSET THEN
REPEAT
gSession.DELETE;
COMMIT;
UNTIL gSession.NEXT =0;
The record count reduces from the session table but the NAV client doesnt closing like previous versions(4.0)
Its not allowing other user to enter in to the killed session
Can anyone suggest a solution to kill the idle session in NAV 2009?
Thanks in advance
Regards
Valan
0
Comments
-
I think that it is because the mid-tier is reconnecting the session. May be these settings from CustomSettings.config of the Service tier could be interesting:
<add key="ClientReconnectPeriod" value="00:10:00"></add> <!-- Sets the maximum number of orphaned connections to be kept alive simultaneouly for a maximum time specified by the ClientReconnectPeriod setting. A connection becomes an orphan when the client becomes involuntarily disconnected from the server. --> <add key="MaxNumberOfOrphanedConnections" value="20"></add> <!-- Threshold for when to start compressing data sets to avoid that they consume prohibitive amounts of memory. -->
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions