![]() |
#4 |
Модератор
|
Цитата:
X++: static void Job10(Args _args) { int session; SysClientSessions SysClientSessions; xSession _session; ; // Способ 1 session = sessionId(); info( "This session ID is number " + int2Str(session)); // Способ 2 select firstonly SysClientSessions where SysClientSessions.Status == 1 && SysClientSessions.clientType == 0 && SysClientSessions.userId == curUserId(); info( "This session ID is number (from Table) " + int2Str(SysClientSessions.sessionid)); // Способ 3 (Работает как надо) _session = new Session(); info( "This session ID is number (new Session()) " + int2str(_session.sessionId())); } Цитата:
SessionId() возвращает значение только для пользователя с правами Админа. Простые пользователи получают = 0 Может у вас какая то особая настройку прав доступа?
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. Последний раз редактировалось Poleax; 01.12.2010 в 17:21. |
|