You could make the app ping the server every 5 minutes. Then if the server doesn't receive the ping, assume that the user closed the browser and log him out.
Another simpler solution would be to put a timeout on the session. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Wed, 2/18/09, grg_blls <[email protected]> wrote: From: grg_blls <[email protected]> Subject: [flexcoders] Time stamping a user Logout To: [email protected] Date: Wednesday, February 18, 2009, 1:18 PM Hi all, I have concluded a sample Flex application where a user logs in (or registers) in the application. I use the Tomcat servlet container plus BlazeDS RPC component and Hibernate persistence to connect to MySQL database. A new user first registers by filling the Registration form. The database is updated for First Creation Timestamp, along with user's UserName and Password. A returning user fills a (similar) Login form. The database is updated for Login Timestamp. When the user does a normal Logout, the database is updated with Logout Timestamp. On User's Logout the User_Loged session time is summed in UserTotalLoged time. My problem is that I need dispatch/listen (?) an event in an abrupt case, like the user instead of doing a normal logout simply closes the browser, or the client/server connection is just lost. Then I have to update the database that the user status is Logout. I hope this description is clear enough for some indications/ help. Thank you all George

