Hi guys,
For a university project i have to write a feature that acts like a vista lock for a website. The user clicks the lock button on the main page, then it goes to another page when the user has to enter their password to go back to the page originally viewed.
I have researched into sessions, and believe that i will have to take the username from the session on the previous page and store it as a variable, then destroy the session in the lock page. I will then have to re-activate the session.
Please could someone confirm my intents. I am a complete rookie and php, but dont expect anyone to do the code for me, just ask advice.
cheers
Locking a session?
Moderator: General Moderators
Re: Locking a session?
what is a vista lock?
Re: Locking a session?
where you click the lock button near the shut down button and it locks your desktop so no one can access your files / use your computer etc
Re: Locking a session?
you can keep that information on a session. remember sessions will expire. Or you could keep that information in the database. I will keep it on the database if when you lock something, it should be locked no matter which machine you are using. The session is only for one machine, one user.