monica1
7th June 2005, 13:12
I define an startup session for a user. But another users use this session normally. It is possible to know if the call is in the startup or normal?
Thank you in advance,
shah_bs
7th June 2005, 19:19
Here is one possibility (for BAAN IV, at least):
Assume that you are interested in knowing when that particular user started that (or any) session. Then for that user, in Maintain User Data (Form 3) you can check the History field and convert to runtime. This will cause BAAN to log each time the user starts and stops the session. This information can be seen using Display User History or Print User History.
The down side of this is:
- Each and every session that the user starts will be logged.
- It is not possible to know who else used the session unless all such users are flagged with the History field.
- We do not use this, so I do not know what administrative effort is required to keep the $BSE/lib/TIME.HIS file in control - it never truncates, it is the BAAN Admin duty to keep its size to suitable limits.
The other possibility (if you have source code) is to customize the session to log who used it. This has the advantage that only that session's usage is logged. However, anybody who uses it will be logged (which may not be a bad thing in itself).
NPRao
7th June 2005, 21:38
It is possible to know if the call is in the startup or normal?
If its a custom session you can add code to your script -
before.program:
import("prog.name$", calling.session)
calling.session = strip$(calling.session)
Then you can check the calling session value if it has the menu browser code or any other session code.