For first try to not ask me why don’t I use database. It’s part of my goal to do a sorta useful site engine using only files.
I have already my own method of registering users and checking if their inputted username and password is correct. Unfortunately I’m still learning and I don’t have luck with session variables and cookies. I need only:
- login for session
- remember password in cookie
- some kind of remembering that you’re still logged in even after 10 minutes
- authentication e.g. displaying “blahblahblah” instead of content if you’re not logged in
Everytime I search for this kind of help I see only complete login/register scripts that can’t be customized to my needs, so I’m finally asking other guys on the internet about these basic things I can just add to code :]