Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By sgkalluri
#822271
Hello there,

I have a situation wherein I would like to know the session id which the user has logged into. As an example, we can get the user logged by @@USER_LOGGED or $_SESSION['USER_LOGGED']. Is there something like this for the session id?

Best wishes,
SGK
User avatar
By hekmati
#822272
you can get it from LOG_SID field in wf_<WORKSPACE>.LOGIN_LOG table by querying from last date of logging of current user (LOG_INIT_DATE) with LOG_STATUS='Active'
By sgkalluri
#822275
Thanks for the reply.

Yes, this will work for regular login. However, when logging using web services, then no record is created in the login_log table.

Best wishes
By sgkalluri
#822276
Hello,

I figured out what I need. It is the variable $_COOKIE['PHPSESSID']. This same variable is stored in the login_log table when normal login happens.

Best wishes

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]