For my website I wanted to create a login system with php for myself where I just have my own admin account. The ultimate goal of it will be that I can login as Admin and change the text in the content css bodies directly on the webpage as admin.
So for creating a secure system I followed a tutorial on youtube to create a secure login system. This is the tut:
So I followed his instructions and wrote this code:
It works fine like that so when I login into the system with a valid id and pw it redirects me to my index.php.
But in the video in the index.php he uses this code to get the session and check if the user is logged in or not:
so theoretically on top of my index.php page it should now display "Members Area".
But it doesn't.
So more or less the login system itself works but the thing with the session doesn't.
I'm not that experienced with sessions yet so I don't exactly see the problem.
Maybe some of you can help me out that would be great
Thanks for the help