PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Problem trying to identify users.
Problem trying to identify users.
Started by Omar Arce, Mar., 09 2011 10:14 AM - 1 reply
Connect yourself…
Omar Arce
#1
Posted on March, 09 2011 - 10:14 AM
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.
Report
0
0
Fabrice Harari
#2
Posted on March, 09 2011 - 2:51 PM
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.
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text