Forum
Keyword
× 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?

  • Posts: 4
  • Thank you received: 0

mr_x created the topic: How to get session id?

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
#3061

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

  • Posts: 84
  • Karma: 2
  • Thank you received: 1

thisisavin replied the 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
#3064

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

  • Posts: 4
  • Thank you received: 0

mr_x replied the topic: Re:How to get session id?

Hi thisisavin

Thank you very much, it is working.

cheers
mr_x
#3069

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

  • Posts: 19
  • Karma: 2
  • Thank you received: 2

Mallika replied the topic: Re:How to get session id?

Without entering into T24, how to get session id. TNO is not working.


Thanks in advance.
#21372

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 441
  • Karma: 7
  • Thank you received: 58

VK replied the topic: Re:How to get session id?

Hi
to get jbase port number use SYSTEM(18)
to get PID use SYSTEM(1037)

Cheers
VK
#21373

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

  • Posts: 23
  • Thank you received: 5

madhulatha replied the 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
#21374

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 441
  • Karma: 7
  • Thank you received: 58

VK replied the topic: Re:How to get session id?

Are you under TAFC?

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

Cheers
VK
#21375

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

  • Posts: 23
  • Thank you received: 5

madhulatha replied the 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.
#21378

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 441
  • Karma: 7
  • Thank you received: 58

VK replied the 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
#21380
The following user(s) said Thank You: madhulatha

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

  • Posts: 8
  • Thank you received: 2

jshanmugasundaram replied the 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).
#21381
The following user(s) said Thank You: madhulatha

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

Time to create page: 0.152 seconds