I all! I'm making a website and because its based on members, I would like to be able to do it so if the user is logged in it displays say for example a message like "your are currently logged in", or if the user is not logged in, a html login form (as an example).
I wish to do this using sessions, I have read up on them.
Could someone please tell me how I would test if they are logged in or not comparing to a database?
So say it tests for a session, it checks the username and password from the database with the session saying if the user is logged in or not. Can someone tell me how to do this? As you've guessed im not amazing at php, but i am learning, and even tho I have read up on sessions; they are still new to me 🙂.
Thanks a lot for any help!