A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Delete a record from database

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    23

    Delete a record from database

    I am making a flash chat application.

    I have a "logout" button in my flash which can delete a record from mysql database through php.

    But what if the user decides to close the browser window without even logging out?

    Is there a way I can delete the user record from database(as in Logout) when the user closes the window?

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    common practice with chats, forums etc: as long as the user is active, activities can be recorded in the database with a time stamp. Now, if the browser is closed, the timestamp will no lobger be updated. After a few minutes, the visitor is considered to be offline / gone

    Musicman

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Location
    Allgood
    Posts
    1
    I found it useful!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center