How to fiind the IDle time.

kgsinha
Member Posts: 67
Hi everybody,,,,
I have to generate a code which will check the Idle Time (total of the time, when user is not using the navision) of the user. And kill the session of the user if it goes above thatn Idle time defined.
As i found that, when user is in log in mode; all information is maintained in "SESSION" table (virtual table). But now i can't understand what to do firther to achive the above goal...
PLEASE HELP
I have to generate a code which will check the Idle Time (total of the time, when user is not using the navision) of the user. And kill the session of the user if it goes above thatn Idle time defined.
As i found that, when user is in log in mode; all information is maintained in "SESSION" table (virtual table). But now i can't understand what to do firther to achive the above goal...
PLEASE HELP
0
Comments
-
You need to read the Session table, find the user who is over limit, and kill him :-) (delete the record from the table
) 8)
0 -
that i want to know....
how i will come to know that user is over limit....
during login mode , i see that "idle time" filed of session table.is not having any value .
Please give the step wise solution if possible...0 -
Of course, because if you look at your session, you are active by this "looking"... (you are 0 seconds inactive) :-) there must be another process which will tell that this user is over limit (e.g. Application server)... It is common "problem of uncertainty" (I do not know terminus technicus) - when you influence the object you are observing... :-)0
-
kine wrote:Of course, because if you look at your session, you are active by this "looking"... (you are 0 seconds inactive) :-) there must be another process which will tell that this user is over limit (e.g. Application server)... It is common "problem of uncertainty" (I do not know terminus technicus) - when you influence the object you are observing... :-)Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kgsinha wrote:that i want to know....
how i will come to know that user is over limit....
during login mode , i see that "idle time" filed of session table.is not having any value .
Please give the step wise solution if possible...
Aren’t you referring to TCP timeout defined in Windows? Navision doesn’t have a timeout.0 -
kine wrote:... It is common "problem of uncertainty" (I do not know terminus technicus) - when you influence the object you are observing... :-)
Schrodinger's Cat.David Singleton0 -
Hi,
Which version you're using? Version 4.0 there's Idle Time in the session table.
Rgds,
Jon.Rgds,
Jon.0 -
kgsinha wrote:that i want to know....
how i will come to know that user is over limit....
during login mode , i see that "idle time" filed of session table.is not having any value .
Please give the step wise solution if possible...
To run the server:server.exe database=i:\40SP3\database.fdb,servername=localhost,cache=32000,nettype=TCP
then simply connect two clients, change the protocol in the open dialog to TCP and chose localhost as the server.
Beware, the field is of type DURATION, so its your decision to either use a timeout of 60seconds, 30minutes or 5hours when you compare the idle value. Therefore, there has to be a client or NAS running, generally speaking some kind of job spooler / scheduler, which will periodically, e.g. every minute, compares the sesion idle time values against a max. idle value, either a global or a user-individual one. If it's over, the session can be deleted.Torsten
MCP+I, MCSE NT, Navision MCT (2004,2005)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