Hi, someone can help me with an asp snippet code

  • _nYght
  • Novice
  • Novice
  • _nYght
  • Posts: 17

Post 3+ Months Ago

hi, please someone can help me to solve one problem:

i'm creating a web page with asp's that mantain a session for each user , an mantain a database of who is online, all is ok but when a user close the window, the session keep open and not delete from the database that is online,

my question is: how can i detect with asp's that the user has leave the page, when closing the window.

thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

maybe you could set an active time limit, say if the person doesn't reload their session (view another page) within five minutes they get deleted from the database?
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

That would probably be the safest bet

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 92 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.