In the same vein to my previous question - I'm not a very experienced PHP programmer. I don't know anything about sessions or security (the other that I learned an hour ago about md5 and sha1 with salt).
I have a login system and I want to create a session that stores and encrypts a string of the username of the user mixed with the timestamp. I know how to create a string, but I don’t know anything about sessions or how they work.
I spent the last hour developing Googling, but they all seem too simple or outdated, I am looking for something that has specific security, but also just (due to my inexperience).
How can I (on the administration pages) check if the user is logged in if this line is encrypted?
I know that there are similar questions, but I need an answer from a complete unprofessional point of view, since I do not know how to implement this solution.
Thanks for any help you can offer.
source
share