Tech Tip: 4DAF 11.2 Login & Logout for Custom Pages
PRODUCT: 4D Web 2.0 Pack | VERSION: 11.2 | PLATFORM: Mac & Win
Published On: August 27, 2008
PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack v11 Release 2 (11.2)
The 4D Ajax Framework 11.2 has enhanced the login process by standardizing the function names and by introducing new handlers.
The new standardized login function is dax_login(username, password);. The previous implementation was login(username, password);. The login handlers are dax_loginSuccess(); (no longer on_afterinit();) and dax_loginFail();.
On a related note the new logout function is dax_logout(); (instead of dax_bridge.logout();), and it's handlers are dax_logoutSuccess and dax_logoutFail.
For more information see the Bridge 2.0 documentation at:
https://daxipedia.4d.com/index.php/Bridge_2.0