Hi, someone can help me with an asp snippet code

  • _nYght
  • Novice
  • Novice
  • No Avatar
  • Joined: May 28, 2004
  • Posts: 17
  • Status: Offline

Post May 28th, 2004, 8:57 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 28th, 2004, 8:57 pm

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post May 29th, 2004, 9:43 am

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?
Pixel Acres V2
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post May 30th, 2004, 11:31 pm

That would probably be the safest bet
Watch me grow

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 207 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.