Terminating a Session After Logout
I have assigned the Logout behavior to a button that when pressed redirects to the Login page, but when another (or the same) user logs in and goes to the insert-record page, the fields are still populated with the data previously entered. I have read in WA's Forums that WA's Logout behavior is actually a Destroy Session behavior, but if it is so, how come those fields are still populated when another user logs in?
The Insert page has a validation behavior and all the Insert fields use WA_Validated Entries each, which may be the reason that the fields are still populated. But if the user already logged out (destroyed the session), why are those fields not empty after a fresh Login?
I have tried to destroy the session using the following code in the Index page but I get error messages when the user goes again to the insert page:
// remove all session variables
// destroy the session
Any suggestions on how to delete all the data entered previously? Either on Logout or on the Index page?
Thank you for your attention