Hello,
I am trying to code a website that has a user only area, and I need the simplest way of managing this. I havent coded in PHP for about 4 years, back then I used cookies and stored cookie id in the db etc
Sessions now seem to quite popular but I guess they terminate when the user closes the browser, if the user comes back the next day they will need to log in again. I would need to set the session in a login script and have the piece of code that checks for active session on each page I wish to be protected?
Dave.
I am trying to code a website that has a user only area, and I need the simplest way of managing this. I havent coded in PHP for about 4 years, back then I used cookies and stored cookie id in the db etc
Sessions now seem to quite popular but I guess they terminate when the user closes the browser, if the user comes back the next day they will need to log in again. I would need to set the session in a login script and have the piece of code that checks for active session on each page I wish to be protected?
Dave.