Hello,
How can i find users who are logged into my website?? i want all the user names.
Thanks in advance.
Hello,
How can i find users who are logged into my website?? i want all the user names.
Thanks in advance.
If you have a database table with predefined usernames and passwords, then all you have to do is add a numeric field called "isonline" or something.
When the user logs on you set that field to 1 and when the user leaves your site you simply set it to 0. (Yes, it's possible).
If the field is set to 1 then all you have to do is iterate through the table to find the usernames of all that has the field "isonline" = 1.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.