Jump to content
xisto Community

dul

Members
  • Content Count

    72
  • Joined

  • Last visited

Posts posted by dul


  1. Hi,

     

    I am storing data in a table based on the session id.  When the user closes their browser, I want to run a quick delete so that the entery to the db with that session id is removed.  How can I do this?

     

    Thanks

    189702[/snapback]


    Hi, take a session boolean variable which takes that customer is using your DB and one integer variable which saves browser hadle. If customer accessing to your DB check that handle number. If handle number is different that customer trying to access from other window (I mean, opened another browser), and set that boolean variable false value. after that you can cut the accessing. Use WINAPI function to get browsers handle FINDWINDOW().

    Good luck

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.