I’m having trouble when a user logs out, and another user logs in, in the same browser, the second user sees the previous user’s information. I think it’s because it is in page/app data. What is the correct way to destroy page/app data on logout?
You could either delete specific properties in page/app data using the Delete Object Property block or initialize them (page/app data) to a brand new object without any properties.
I think it’s because the rest of the page is still “running” and now is throwing errors when the values they depended on were deleted. That is a total guess, this one has me stuck. If that’s correct, what is the solution?
Looks like a better place to do it would be in the authLogin page. Set a flag here to indicate that the properties should be deleted and when you arrive to authLogin perform the clean-up there.
I can do that. One more question, authLogin can have query string variables, which if I remember correctly, get added directly to Page Data. How would you suggest removing everything from Page Data when new variables I need are getting set?
Now that I’m writing this out, do I need to delete everything from page data? That should be all lost when going to another page, right?