FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Problem trying to identify users.
Problem trying to identify users.
Débuté par Omar Arce, 09 mar. 2011 10:14 - 1 réponse
Connectez-vous…
Omar Arce
#1
Posté le 09 mars 2011 - 10:14
Hi.
I have a problem trying to identify what users are connected to my application.
I need only allow one connection to the system at the same time per user.
I Already put in the WebDev Administrator, the value “1” for the parameter “Maximum number of
connections per user”, this works correctly, the problem arises when the user for some reason does not close properly the system and the function "EndProgram()" is not runned.
Then when this happens the session remains open due to the parameter "Disconnect idle users since" in the WebDev Administrator is set to 30:00 minutes.
The question is; how to identify when a user is connected to the application (by the idle time)? And how to end the user session, to allow the access to the application again?
*The WebDev application has implemented the UserGroupware, and the database connection is made via hyperfile/client server.
Best regards.
Signaler
0
0
Fabrice Harari
#2
Posté le 09 mars 2011 - 14:51
Hi Omar
one way of dealing with this problem is the following :
- reduce drastically the length of a session (60 seconds max, by example)
- in a page model used by all your web site pages, add a timer every 30
seconds (by example, again) and in the code called by the timer, do an
ajaxexecute of an empty function on the server. This timer and the ajax
call will keep alive your session for as long as the browser is open,
and if the browser closes for any reason, then the session will end 1
minute later
Now, your original problem is to identify your users uniquely... a
simple login/password should be able to do that. You cannot rely on IP
address (multiple users at the same access point) and you cannot access
unique information from the computer (like the mac address) for security
reasons. So it seems to me that it's the only solution.
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
More information on
http://www.fabriceharari.com
On 09/03/2011 04:14, Omar Arce wrote:
Hi.
I have a problem trying to identify what users are connected to my application.
I need only allow one connection to the system at the same time per user.
I Already put in the WebDev Administrator, the value “1” for the parameter “Maximum number of
connections per user”, this works correctly, the problem arises when the user for some reason does not close properly the system and the function "EndProgram()" is not runned.
Then when this happens the session remains open due to the parameter "Disconnect idle users since" in the WebDev Administrator is set to 30:00 minutes.
The question is; how to identify when a user is connected to the application (by the idle time)? And how to end the user session, to allow the access to the application again?
*The WebDev application has implemented the UserGroupware, and the database connection is made via hyperfile/client server.
Best regards.
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte