× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

How to get session id?

More
16 years 2 months ago #3061 by mr_x
How to get session id? was created by mr_x
T24 VERSION: R08
JBASE: 5.09

Dear All,

I want to get user id, for example :

ID STATUS DATE.TIME INPUTTER FUNCT.
1 111313 INAU 24 APR 09 16:02 176_AUTHORISER


when I use "OPERATOR" the result only "AUTHORISER" but the session id(176) did not appear

Any idea how to get this session id ?

thanks and regards
mr_x

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #3064 by thisisavin
Replied by thisisavin on topic Re:How to get session id?
hi,

There is a variable called TNO which holds the session id you are looking for. Hope this meets your requirement. This variable is available in the I_COMMON file.

regards,
dj

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #3069 by mr_x
Replied by mr_x on topic Re:How to get session id?
Hi thisisavin

Thank you very much, it is working.

cheers
mr_x

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago - 7 years 9 months ago #21372 by Mallika
Replied by Mallika on topic Re:How to get session id?
Without entering into T24, how to get session id. TNO is not working.


Thanks in advance.
Last edit: 7 years 9 months ago by Mallika.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 9 months ago #21373 by VK
Replied by VK on topic Re:How to get session id?
Hi
to get jbase port number use SYSTEM(18)
to get PID use SYSTEM(1037)

Cheers
VK

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #21374 by madhulatha
Replied by madhulatha on topic Re:How to get session id?
Hi
We used SYSTEM(1037) is not updated session ID for inputter in Audit fields, it shows '0'.

27 CURR.NO........... 1
28. 1 INPUTTER....... 0_MADHU
29. 1 DATE.TIME...... 30 AUG 15 19:56
30 AUTHORISER........ 5781_MALLIKA

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 9 months ago #21375 by VK
Replied by VK on topic Re:How to get session id?
Are you under TAFC?

try from jsh:
LIST . SAMPLE 1 EVAL "SYSTEM(1037)"

Cheers
VK

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #21378 by madhulatha
Replied by madhulatha on topic Re:How to get session id?
hi

we run the program without entering into t24 in TAFC , we are updating audit fields through F.LIVE.WRITE. we are not getting session number for INPUTTER field
SYSTEM(1037) is process id, we need session id.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 9 months ago - 7 years 9 months ago #21380 by VK
Replied by VK on topic Re:How to get session id?
Hi

we run the program without entering into t24 in TAFC , we are updating audit fields through F.LIVE.WRITE


That's very risky... You don't have full T24 environment populated in COMMON areas.

Why can't you log in automatically before doing that? Or - even better - use OFS?

Cheers
VK
Last edit: 7 years 9 months ago by VK.
The following user(s) said Thank You: madhulatha

Please Log in or Create an account to join the conversation.

  • jshanmugasundaram
  • Visitor
  • Visitor
7 years 9 months ago #21381 by jshanmugasundaram
Replied by jshanmugasundaram on topic How to get session id?
Hi,

T24 session number is a unique number randomly generated by T24 to identify current session number which will be allocated when login into T24, so T24 session number cannot be get outside T24, if there is no specific purpose for the session number then you can get by calling A = RND(99999).

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds