FoxInCloud
Your session has expired
Gravatar is a globally recognized avatar based on your email address. Your session has expired
  Vincent H.
  All
  Oct 2, 2018 @ 10:13am

Hi Thierry,
What causes the message "Your session has expired, you will be redirected to the home page to re-identify yourself"? Because it seems to happen randomly

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 2, 2018 @ 11:56pm

Hi Vincent, please see xxx.ini > SessionTimeOutMin

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 12:40am

The value is set to 30. But some users are disconnected after 2 minutes or less.

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 01:58am

Works fine in all FoxInCloud applications I know of; I suspect your application somehow closes the session and/or clears wUserID

Do you have a repro scenario?

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 05:35am

I can not find wUserID. Is this wcUserID ?
When a user leaves the application, I have a xxx.wUserLogOff.
Something to edit in xxxServer.prg ?
thank you in advance

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 06:58am

here are the methods that close the session:

  • .wUserLogOff()
  • Session.EndSession()

no other setting influences

you can check in wwSession the date-time when session was closed and see what request the user has made at this same date-time

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 07:48am

OK, thanks.
It seems that it is sometimes the connection of a user that causes the premature end of the session of another. Random, failed to accurately reproduce.

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 07:55am

OK I now understand the scenario.

Only one single user can be connected at a time with a given wUser ID. If another user attempts to connect, the first user is disconnected.

This helps software editors sell licenses based on the number of concurrent users (standard SAAS business model) without a possible cheat.

Only xxxServer.wUserDemo supports multiple connexions.

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 08:02am

Sorry I do not understand. There can only be one user connected to our platform ?

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 08:03am

with a given wUser ID

one user per wUser ID

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 08:13am

In my case, it seems to me that the id is provided by the folder number no ? In this case, why connecting to a folder would cause the disconnection of someone connected to another folder ?
Sorry, I'm floundering

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 08:16am

exactly, in your case, one user at a time per folder

disconnection only if the same folder

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 08:27am

Thank you Thierry, that's what I thought.
I am reassured on this side but my question remains intact. I do not understand the origin of these repeated disconnections.

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 3, 2018 @ 08:36am

we can help with a repro scenario only…

Gravatar is a globally recognized avatar based on your email address. re: Your session has expired
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 3, 2018 @ 08:52am

I will try to hunt down the beast 😉

© 1996-2024