The Users Collection

September 23, 2012

PSGUSERS  – the users collection – each user has a user object here  - server.psgusers

 

Methods:

getuserprop(<username>,<property to return>)

 

Available properties of user object:

active_usr returns .T. if the server accepts connections from this user

computer returns the user computer name

logintime returns the datetime of last login

remoteIP returns the user remote IP, or the user router’s IP

remotePort returns the user remote port or the user’s router port

uid returns the user unique ID

uname returns the user full name

usrcode returns the user code

online Returns 1 if the user is online

 

Example: server.psgusers.getuserprop(loginname,’usrcode’) -returns the user code

Related Articles

User Object

Properties: active_usr returns .T. if the server accepts connections from…

Default PSG Services

Services that start with PSG, serve for system configuration, being…

PSG Services

PSG services are dynamic implemented from defined PSG service scripts.…

PSG Connection Object

Instantiated at user login, this object receives the PSG request…

No Responses

Leave a Response

Your e-mail will not be published. All fields are required

Featured Articles