FoxInCloud
wUserLogin
Gravatar is a globally recognized avatar based on your email address. wUserLogin
  Vincent H.
  All
  Oct 22, 2020 @ 02:29am

Hi All,

How to be sure that a user is connected at a certain time and how to log him out ?

Gravatar is a globally recognized avatar based on your email address. re: wUserLogin
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 22, 2020 @ 07:47am

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')
Gravatar is a globally recognized avatar based on your email address. re: wUserLogin
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 22, 2020 @ 08:45am

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.

Gravatar is a globally recognized avatar based on your email address. re: wUserLogin
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 22, 2020 @ 10:50am

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
Gravatar is a globally recognized avatar based on your email address. re: wUserLogin
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 22, 2020 @ 11:35am

Thanks Thierry.

As always, I thought it was easier. I'll work on it ...

© 1996-2020