PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.0 and 1.1
The 4D Ajax Framework was designed with flexibility in mind. One feature that exhibits this flexibility is the ability to log into the database with the same user on two different machines or browsers. By default a user is not able to simultaneously log in more than once with the 4D Ajax Framework Client. If the user logs in a second time, the following error will be prompted for the first instance of the user:
Your session has ended please login in again to continue.
If you would like to be able to log in simultaneously with one account, you can modify the DAX_DevHook_Login method.
For example, if you would like to log in with the user account 'Joe' more than once, replace the line:
$0:=$loggedn_b
with
If ($userName_t="Joe")
$0:=True
else
$0:=$loggedn_b
end if
Other Resources:
Dax DevHook Login
https://www.daxipedia.com/index.php/DAX_DevHook_Login