mr_mind Posted December 9, 2007 Share Posted December 9, 2007 I am creating a community and i need to show all of the registered sessions on my site. Plus i need to show if a user is online. What i am using for the session values right now is: $_SESSION['user_id'] = the uer id number $_SESSION['password'] = the hashed password Quote Link to comment Share on other sites More sharing options...
rarebit Posted December 10, 2007 Share Posted December 10, 2007 sessions are supposed to be user specific, if you log all this to a db then you can let admin sort this info very easily Quote Link to comment Share on other sites More sharing options...
mr_mind Posted December 10, 2007 Author Share Posted December 10, 2007 that's not quite what I'm looking for. I want to be able to read the sessions that are registered not needing to insert into a db Quote Link to comment Share on other sites More sharing options...
kratsg Posted December 10, 2007 Share Posted December 10, 2007 Sessions are like cookies. You give out a cookie to someone. You have no way of knowing who has a cookie, unless you got a reciept from them... Same thing here, you need to save this into either a text file or database that can easily be accessed and manipulated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.