> Im storing three values during a session in a db. When the user logs off
> or when they just close the broswer, I want those values turned back to 0.
>
> I know how to do this if they just log out but, how would you do this if
> they just close the broswer?

every time he opens a page you refresh the timestamp in his session record.
every time somebody logs in you delete all records with timestamp older 1 
hour.
(why storing session data in a database? server already does in file system) 



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to