SmartTechie
SmartTechie

Reputation: 123

How to clear flex shared objects when browser closes abruptly?

How to clear the shared objects when user closes the browser abruptly?If the user opens the same application in two tabs, and user tries to close any one of the tab, we have to listen only the closed tab event.

Is there any ways..

Upvotes: 0

Views: 486

Answers (1)

JeffryHouser
JeffryHouser

Reputation: 39408

It's a bit unclear what you're asking.

If you want to clear something every time the user closes the browser; then why would you want to store that value as a shared object? The purpose of a Shared Object is to persist between sessions, or uses, of the application.

If you're using Shared Object as a generic term to mean some "Stored State" in the flex app; then it will go away at the same time the browser is closed.

If you're using shared object as a generic term to mean some a server side session, then that session should automatically time out on the server, irregardless of what happens in the browser. Most application servers I have used provide a way to execute code when a session timeouts.

Upvotes: 1

Related Questions