{"id":4122,"date":"2014-03-30T07:58:23","date_gmt":"2014-03-30T07:58:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-track-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:58:23","modified_gmt":"2014-03-30T07:58:23","slug":"problem-about-track-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-track-collection-of-common-programming-errors\/","title":{"rendered":"problem about track-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6c68b5efbb564ca75ab29d83cae3f563?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1333603<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a35ba06ef9c514ee749864e0f0cfe326?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1260310<br \/>\nphp session user track<br \/>\nI want to show users who else is logged in as part of a comment system. What are best practices for keeping track of users? For example:Do you keep track of all sessions and then mark them as closed. Or do you delete users upon logout, keeping track only of active users.I&#8217;m thinking I should create a table with userid, time logged in, time logged out and\/or status. Is that the way to go or is there some alternative approach of tracking session ids. If using a table, is there value in keepin<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>user1333603 user1260310 php session user track I want to show users who else is logged in as part of a comment system. What are best practices for keeping track of users? For example:Do you keep track of all sessions and then mark them as closed. Or do you delete users upon logout, keeping track only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4122","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4122"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4122\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}