Hai, i'm new to cookies/sessions, so i'm not sure how to do this. So, theres a row in the user account table called 'online'. When their online, the value is 1. When their offline, the value is 0. I'm not sure how to do this, like to store a cookie then remove it when they leave? Halp please :D
Dartz654
0
Newbie Poster
Recommended Answers
Jump to PostThe simplest way to do this is to make a column to store the last time the user was active. E.g:
// Before end of script $time = time(); mysql_query("UPDATE Members SET last_active='$time' WHERE memberid=$memberid", $con);
Then to check if a user is online or not, choose …
All 4 Replies
chrishea
182
Nearly a Posting Virtuoso
Lsmjudoka
0
Junior Poster in Training
raju_boini525
0
Junior Poster in Training
mschroeder
251
Bestower of Knowledge
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.