FoxInCloud
wUserLogin
Hi Vincent,
be sure that a user is connected
do you mean another user than the one currently working on the app?
at a certain time
do you mean at a scheduled time, eg. at 7 PM?
how to log him out ?
- current user:
thisform.wUserLogOff()
- another user: you need to know the sessionID for this user, then
m.Session.EndSession('sessionID')
Thank you for this quick response.
When I launch my application, users identify themselves through a list of choices.
If the account has already been used and the connection is still in progress, message and possibly disconnection.
There is no standard method for that.
You need to query the wwSession
table, open in the Server DataSession (not in your app or form DS).
I would recommend you subclass awSession
into xxxSession
to add the method you need, and you set in your xxxServer
class:
cawSessionClass = 'xxxSession' && xxxSession AS awSession OF awServer.fxp