How to control/kill sessions?
Comments
-
NAV2009 has become 'more resistant' to network timeouts (Or going into standby for portables).
The result is that you can kill a session as you noticed, but the client is still able to restore the session if there are enough licenses left and if the client wasn't communicating with the server at the moment the session was killed. In this last case you have a big probability that the session gets some weird errors. Closing the database and reopening fixes it.
I find it a positive "bug". You free a session and a license and if the user reuses his killed session after a day or 2, it seems it is still active. So you have the advantage of freeing licenses AND the positive of always being connected to the server.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hi Kriki,
Thanks for your reply.
Agree with you on certain extent, but still
If Sessions are keeping active after session entries getting deleted(using code), due to network issues or license availability for more sessions, then why this is not the same case with manually deleting the session entries.
Agree if this is a bug in Navision, but why this is not behaving in same manner for both cases, I mean when I am deleting session entries manually and when I am deleting session entries using session killer code.0 -
prasad4sp wrote:If Sessions are keeping active after session entries getting deleted(using code), due to network issues or license availability for more sessions, then why this is not the same case with manually deleting the session entries.
After some testing this out I found this:
Killing a session using the form kills the session permanently.
Killing a session using C/AL DELETE(TRUE) kills the session permanently.
Killing a session using C/AL DELETE(FALSE) kills the session 'temporarily' (in 2009R2. Older versions (don't know exactly which are permanently)). The session killer is using the DELETE(FALSE). If you change it to DELETE(TRUE), it will kill them permanently.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Kriki,
I have tested the code Session.DELETE(TRUE). The result is the session has deleted, but I still can access the RTC. Is there any setting that I did not set?
For your information, if I delete the RTC session in database session manually, the RTC connection is not closed. If I clear the RTC session in database session manually, the RTC connection is closed.
How to clear RTC session in C/AL Code?
Thanks in advance.Best regards,
Johanna0 -
Actually, the session is killed. But NAV2009R2 (both Classic and RTC) has the ability to recover from a "lost" session. And if there are are still sessions over in the license, NAV can connect as if nothing happened. But the session is freed for others to take if needed.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Kriki,
Okay.. Thank you for your informationBest regards,
Johanna0 -
thank you for information!
your forum is really helpfull for me!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