I have used this tutorial for 'sign in with google' on my website. http://tutorialzine.com/2012/08/build-a-one-click-registration-form-powered-by-google/
I am not a programmer really but just download the code in there and followed the steps in there. It works fine. Now I want all logged in users with their profile pic displayed as a list. This should be visible to anyone on the website. If a user logs out, he should be removed from the list. Can someone point me to an article or help me please?
You need to learn little bit of programming to do so.. first you need to create a database table
which will store the value for logged in users
.. I checked the code , so when a user loggs in to your website than his user_id
is been saved to the session_variable
.. so you can insert his/her user_id
to your database table and you can use a login flag
lets say true or false
so if the user_id
is there in the session_variable
than the flag should be true
and when the user loggs out than you can update the flag to false
.. So by using this you can achive your desired thing. . but some developing knowledge is must to do so..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.